82 Star 537 Fork 101

GVPJenkins中文社区 / jenkins-cli

2021-01-29 21:42
341925 linuxsuren 1655257622 Rick

What’s Changed

In some cases, we might need to add or remove parameters from Pipeline. It's terrible if you need to deal with too many Pipelines manually. You can add parameters via: jcli job param init-job --add '[{"name":"name","value":"my name","desc":"this is a name"}]'

Delete many job build history across different jobs is also very simple. See also: jcli job history init-job -d 1

Sometimes, it's very slow to download jenkins.war. From now, jcli can download it with multiple threads. For example:

# jcli center download -t 8
start to download with 8 threads, size: 67287051, unit: 8410881

Another big feature is that, jcli can start Jenkins in Docker with a single command:

jcli center start -m docker --image kubespheredev/ks-jenkins --version 2.249.1 --c-user root --port 9090 --setup-wizard=false

The star from GitHub is 234, star from Gitee is 251. The download is 11,168.

🚀 Features

  • Fix the random web for center start do not work (#520) @Rick
  • Add support to delete job history (#519) @Rick
  • Add support to add or remove pipeline parameters (#513) @Rick
  • Allow user put shell into config data (#518) @Rick
  • Add an option to download jenkins.war with multi-thread (#517) @Rick
  • Add an option to clean the JENKINS_HOME before start run plugin (#506) @Rick
  • Add an option to force pull image before start it (#503) @Rick
  • Sperate code into another project (#500) @Rick
  • Fix cannot upgrade itself on linux (#495) @Rick
  • Refactory with computer launch command (#491) @Rick
  • Add command alias support (#494) @Rick
  • Sperate cli plugin into a single git repo (#492) @Rick
  • Support run golang image as JNLP agent (#489) @Rick
  • Support run Jenkins agent as docker (#488) @Rick

👻 Maintenance

  • Fix the unavailable GitHub release stats service (#512) @Rick
  • Bump upx version (#516) @Rick
  • Bump github.com/magiconair/properties from 1.8.1 to 1.8.4 (#482) @dependabot
  • Bump github.com/linuxsuren/http-downloader from 0.0.2 to 0.0.10 (#515) @dependabot
  • Bump github.com/linuxsuren/cobra-extension from 0.0.5 to 0.0.10 (#514) @dependabot
  • Bump golang.org/x/text from 0.3.4 to 0.3.5 (#508) @dependabot
  • Bump github.com/stretchr/testify from 1.6.1 to 1.7.0 (#509) @dependabot
  • Improve the jcli completion document (#507) @Rick
  • Add more labels (#505) @Rick
  • Bump github.com/AlecAivazis/survey/v2 from 2.2.2 to 2.2.7 (#502) @dependabot
  • Bump github.com/linuxsuren/cobra-extension from 0.0.3 to 0.0.5 (#497) @dependabot
  • Bump github.com/linuxsuren/go-cli-alias from 0.0.3 to 0.0.4 (#498) @dependabot
  • Bump goreleaser/goreleaser-action from v2.4.0 to v2.4.1 (#490) @dependabot
  • Bump github.com/linuxsuren/cobra-extension from 0.0.1 to 0.0.3 (#496) @dependabot
  • Bump goreleaser/goreleaser-action from v2.3.0 to v2.4.0 (#486) @dependabot
  • Bump goreleaser/goreleaser-action from v1 to v2.3.0 (#480) @dependabot
  • Update actions/checkout requirement to v2.3.4 (#478) @dependabot
  • Bump actions/setup-go from v1 to v2.1.3 (#479) @dependabot
  • Bump jenkins-zh/git-backup-actions from v0.0.3 to v0.0.4 (#477) @dependabot
2020-12-03 10:40
341925 linuxsuren 1655257622 Rick

What’s Changed

This is a small release version. The main idea of this is to remove CASC from jcli core. You want to use it. Please see here.

🚀 Features

  • Move casc sub-command into jcli-casc-plugin (#475) @Rick

🐛 Bug Fixes

  • Fix the missing checking of the 'current' option in the config file (#474) @gocruncher
  • Fix the wrong path of config plugin (#472) @Rick

👻 Maintenance

  • Bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0 (#476) @dependabot-preview
2020-11-20 08:10
341925 linuxsuren 1655257622 Rick

What’s Changed

It's been a long time not to have a release of jcli. But it's totally worth to upgrade it. Let's see what you can get.

Normally, you need to set up the config file of jcli if this is the first time you install it. Generating the user token from Jenkins, then write it back to the config file is a pretty annoying process. But it's not necessary anymore. It can be automatically now. You just need to run the following command:

jcli center login

It will open the browser, and your config file will be ready once you login into Jenkins. But there's one limitation that does exist. Jenkins and your computer must be about to connect to each other. Besides, you need to install one more plugin.

The second feature is the Jenkins formula. Thanks @oleg-nenashev for taking the initiative to start Custom Jenkins WAR packager. We can generate a custom distribution of Jenkins. jcli support to export a formula from a Jenkins. Also, it can install all plugins that come from a Jenkins formula file. Check out these two commands below:

jcli plugin formula > formual.yaml            # export into a YAML formula file
jcli plugin install --formula formual.yaml    # install plugins from a formula file

The third feature is that we can run Jenkins as a docker container via jcli center start -m docker.

What is next? I know a lot of newcomers to Jenkins feel terrible when they meet the plugins dependency issues. So please don't hesitate to file a pull request to close this issue if you're interested in.

🚀 Features

  • Improve plugin upload command (#440) @Rick
  • Improve the version upgrade of jcli (#435) @Rick
  • Add support to install plugins via Jenkins formula (#469) @Rick
  • Add support fetch Jenkins token automatically (#469) @Rick
  • Add support to connect to ssh server (#468) @Rick
  • Add support to run docker image with center start cmd (#464) @Rick
  • Add support to download a plugin with specific version (#465) @Rick
  • Add http proxy support which can ready from env variable (#414) @Rick
  • Add an option to print cwp version (#462) @Rick
  • Support export current Jenkins as a formula (#458) @Rick
  • Add a global timeout option for all commands (#446) @Rick
  • Improve the self-upgrade when no privileges (#437) @Rick

📝 Documentation updates

  • Add documentation for more package manager (#461) @Rick

👻 Maintenance

  • Bump github.com/spf13/cobra from 1.0.0 to 1.1.1 (#452 #453) @dependabot-preview
  • Bump github.com/AlecAivazis/survey/v2 from 2.0.8 to 2.2.2 (#445 #459) @dependabot-preview
  • Bump github.com/onsi/ginkgo from 1.14.0 to 1.14.2 (#449 #451) @dependabot-preview
  • Bump github.com/onsi/gomega from 1.10.1 to 1.10.3 (#448 #450) @dependabot-preview
  • Bump golang.org/x/text from 0.3.2 to 0.3.4 (#444 #454) @dependabot-preview
  • Bump go.uber.org/zap from 1.15.0 to 1.16.0 (#447) @dependabot-preview
  • Bump github.com/golang/mock from 1.4.3 to 1.4.4 (#442) @dependabot-preview
2019-11-29 08:56
341925 linuxsuren 1655257622 Rick

What’s Changed

Features

  • Add support to create a plugin (#255) @Rick
  • Add sub shell support (#253) @Rick
  • Add support to use update center mirror (#251) @Rick
  • Add param-entry for job build (#249) @Rick
  • Add support to stop the last build (#248) @Rick
  • Add i18n support for command description (#245) @Rick
  • Add cmd completion for config select and remove (#246) @Rick
  • Add bash completion support to plugin, config and job cmd (#242) @Rick
  • Add support to download a specific Jenkins war (#240) @Rick
  • Add support to diagnose configurations (#169) @yJunS
  • Add support to download a plugin from mirror site (#222) @Rick
  • Add support to download Jenkins from a mirror site (#221) @Rick
  • Add support to load a jenkinsfile from url (#220) @Rick
  • Add support to edit a pipeline from multi-methods (#206) @Rick
  • Add support to install a specific version of plugin (#211) @sbcd90

Documentation updates

Maintenance

  • Add more check item about git branch stragtegy (#227) @Rick
  • Bump go.uber.org/zap from 1.12.0 to 1.13.0 (#237) @dependabot-preview
  • Bump gopkg.in/yaml.v2 from 2.2.4 to 2.2.5 (#225) @dependabot-preview
  • Bump github.com/onsi/ginkgo from 1.10.2 to 1.10.3 (#218) @dependabot-preview
  • Bump github.com/onsi/gomega from 1.7.0 to 1.7.1 (#217) @dependabot-preview

Tests

  • Add test cases for job param (#232) @Rick
  • Add test cases for plugin check (#224) @Rick
  • Improve test coverages (#223) @Rick
  • Add test cases for job history (#228) @Rick
最后提交信息为: Add support to create a plugin (#255)
2019-09-26 09:24
341925 linuxsuren 1655257622 Rick

What’s Changed

  • Contributing guidelines: REST API information links and spelling fixes (#165) @oleg-nenashev
  • Add contribution guide (#162) @Rick
  • Change the job edit api url (#148) @Rick
  • Add test cases for part of main logics (#133) @Rick

Features

  • Show the version of plugins when searching (#156) @yJunS
  • Add single name as a output format (#163) @Rick
  • Add bash completion for jcli (#161) @Rick
  • Add support to upgrade a plugin by command (#144) @Rick
  • Add support to cancel a job from the queue (#145) @Rick
  • Add support to search all jobs (#143) @Rick
  • Add support to finish the watch by conditions (#141) @Rick
  • Add post command hook (#140) @Rick
  • Add support to output installed plugins as json format (#137) @Rick
  • Add support to download Jenkins (#129) @Rick

Bug Fixes

  • Try to fix the travis pr id (#146) @Rick
  • Fix the issue that cannot uninstall pluing (#139) @Rick

Maintenance

  • Add sonar code coverage report paths config item (#158) @Rick
  • Set the exit code for golint (#157) @Rick
  • Add code covrage badege for sonar scan result (#154) @Rick
  • Add go vet and golint (#152) @Rick
  • Add more shield badages (#150) @Rick
  • Add user-agent into http request (#149) @Rick
Go
1
https://gitee.com/jenkins-zh/jenkins-cli.git
git@gitee.com:jenkins-zh/jenkins-cli.git
jenkins-zh
jenkins-cli
jenkins-cli

搜索帮助