Releases: jenkins-zh/jenkins-cli
v0.0.37
What’s Changed
🚀 Features
- Add support to search Jenkins jobs via blueocean API (#561) @LinuxSuRen
🐛 Bug Fixes
- Bump go verion from 1.12 to 1.14 (#568) @LinuxSuRen
👻 Maintenance
- Bump goreleaser/goreleaser-action from v2.4.1 to v2.5.0 (#560) @dependabot
- Bump github.com/magiconair/properties from 1.8.4 to 1.8.5 (#559) @dependabot
v0.0.36
What’s Changed
🚀 Features
- Select the current Jenkins if the name is empty when update config (#548) @LinuxSuRen
- Add an option for crumbIssue session id to center start command (#545) @LinuxSuRen
- Add support update config item token (#547) @LinuxSuRen
🐛 Bug Fixes
- Revert "Fix segfaults URL param" (#549) @LinuxSuRen
👻 Maintenance
- Bump github.com/onsi/gomega from 1.10.5 to 1.11.0 (#551) @dependabot
- Bump github.com/golang/mock from 1.4.4 to 1.5.0 (#535) @dependabot
- Bump github.com/linuxsuren/go-cli-alias from 0.0.4 to 0.0.6 (#552) @dependabot
- Bump github.com/onsi/ginkgo from 1.15.0 to 1.15.1 (#550) @dependabot
- Bump github.com/atotto/clipboard from 0.1.2 to 0.1.4 (#540) @dependabot
- Bump github.com/linuxsuren/http-downloader from 0.0.16 to 0.0.22 (#544) @dependabot
- Bump github.com/AlecAivazis/survey/v2 from 2.2.7 to 2.2.9 (#546) @dependabot
- Bump github.com/spf13/cobra from 1.1.1 to 1.1.3 (#532) @dependabot
v0.0.35
What’s Changed
- Fix Jenkins agent launch in docker mode (#529) @LinuxSuRen
🐛 Bug Fixes
📝 Documentation updates
👻 Maintenance
- Bump github.com/linuxsuren/http-downloader from 0.0.15 to 0.0.16 (#528) @dependabot
v0.0.34
What’s Changed
🐛 Bug Fixes
- Fix the error usage of version (#525) @LinuxSuRen
👻 Maintenance
- Bump github.com/onsi/ginkgo from 1.14.2 to 1.15.0 (#524) @dependabot
- Bump github.com/linuxsuren/http-downloader from 0.0.10 to 0.0.15 (#526) @dependabot
v0.0.33
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) @LinuxSuRen
- Add support to delete job history (#519) @LinuxSuRen
- Add support to add or remove pipeline parameters (#513) @LinuxSuRen
- Allow user put shell into config data (#518) @LinuxSuRen
- Add an option to download jenkins.war with multi-thread (#517) @LinuxSuRen
- Add an option to clean the JENKINS_HOME before start run plugin (#506) @LinuxSuRen
- Add an option to force pull image before start it (#503) @LinuxSuRen
- Sperate code into another project (#500) @LinuxSuRen
- Fix cannot upgrade itself on linux (#495) @LinuxSuRen
- Refactory with computer launch command (#491) @LinuxSuRen
- Add command alias support (#494) @LinuxSuRen
- Sperate cli plugin into a single git repo (#492) @LinuxSuRen
- Support run golang image as JNLP agent (#489) @LinuxSuRen
- Support run Jenkins agent as docker (#488) @LinuxSuRen
👻 Maintenance
- Fix the unavailable GitHub release stats service (#512) @LinuxSuRen
- Bump upx version (#516) @LinuxSuRen
- 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) @LinuxSuRen
- Add more labels (#505) @LinuxSuRen
- 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
v0.0.32
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) @LinuxSuRen
🐛 Bug Fixes
- Fix the missing checking of the 'current' option in the config file (#474) @gocruncher
- Fix the wrong path of config plugin (#472) @LinuxSuRen
👻 Maintenance
- Bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0 (#476) @dependabot-preview
v0.0.31
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.
Do you want to upgrade? It's very simple: jcli version upgrade
.
🚀 Features
- Improve plugin upload command (#440) @LinuxSuRen
- Improve the version upgrade of jcli (#435) @LinuxSuRen
- Add support to install plugins via Jenkins formula (#469) @LinuxSuRen
- Add support fetch Jenkins token automatically (#469) @LinuxSuRen
- Add support to connect to ssh server (#468) @LinuxSuRen
- Add support to run docker image with center start cmd (#464) @LinuxSuRen
- Add support to download a plugin with specific version (#465) @LinuxSuRen
- Add http proxy support which can ready from env variable (#414) @LinuxSuRen
- Add an option to print cwp version (#462) @LinuxSuRen
- Support export current Jenkins as a formula (#458) @LinuxSuRen
- Add a global timeout option for all commands (#446) @LinuxSuRen
- Improve the self-upgrade when no privileges (#437) @LinuxSuRen
📝 Documentation updates
- Add documentation for more package manager (#461) @LinuxSuRen
👻 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
v0.0.30
What’s Changed
For many uses who want to integrate Jenkins into their own platform, they might meet a problem. How can I get the build ID after I triggered a job?
In order to have a better understanding about it. I guess you need to know the mechanism of Jenkins schedule. If a job was triggered, Jenkins will create a task in the waiting queue, once there is a appropriate agent is ready for it, then Jenkins will schedule it to that agent.
In another word, it's a asynchronous process. So you cannot get the build id immediately, because it has not started.
There's my offer. Install plugin Pipeline restFul API v0.9 on your Jenkins, upgrade Jenkins CLI to v0.0.30. Then take the following command:
jcli job build job/devops/ -b --wait --columns Number --no-headers
The output is 36
.
🚀 Features
- Add self upgrade support (#431) @LinuxSuRen
- Add support to build job after saved it (#429) @LinuxSuRen
- Add man page in homebrew (#391) @LinuxSuRen
- Add support to trigger build and getting the build id (#434) @LinuxSuRen
- Add timeout option for plugin upload command (#428) @LinuxSuRen
- Add timeout option for plugin check command (#422) @LinuxSuRen
🐛 Bug Fixes
- Fix cannot connect jnlp agent with http proxy (#420) @LinuxSuRen
📝 Documentation updates
- Add gitbook support for jcli document (#426) @LinuxSuRen
👻 Maintenance
- Bump github.com/onsi/ginkgo from 1.13.0 to 1.14.0 (#421) @dependabot-preview
- Bump github.com/spf13/pflag from 1.0.3 to 1.0.5 (#432) @dependabot-preview
- Bump github.com/AlecAivazis/survey/v2 from 2.0.7 to 2.0.8 (#427) @dependabot-preview
v0.0.29 🌈
What’s Changed
🚀 Features
- Adding output HTTP request as curl command (#409) @LinuxSuRen
- Add shutdown Jenkins support (#346) @LinuxSuRen
- Add support to store token to keyring (#399) @LinuxSuRen
- Allow pass a file type param when build Jenkins job @WangXiangUSTC
- Add a default function to cwp config file (#415) @LinuxSuRen
- Support for running jenkinsfile Runner. (#379) @sladyn98
- Add release tracking task template (#337) @LinuxSuRen
🐛 Bug Fixes
- Fix reading wrong token from keyring (#419) @LinuxSuRen
📝 Documentation updates
- Add a similar project jenni (#401) @LinuxSuRen
👻 Maintenance
- Bump github.com/stretchr/testify from 1.5.1 to 1.6.1 (#413) @dependabot-preview
- Bump github.com/hashicorp/go-version from 1.2.0 to 1.2.1 (#417) @dependabot-preview
- Bump github.com/onsi/ginkgo from 1.12.0 to 1.13.0 (#416) @dependabot-preview
- Bump github.com/onsi/gomega from 1.9.0 to 1.10.1 (#408) @dependabot-preview
- Bump gopkg.in/yaml.v2 from 2.2.8 to 2.3.0 (#404) @dependabot-preview
- Add hits badge (#418) @LinuxSuRen
- Bump go.uber.org/zap from 1.14.1 to 1.15.0 (#394) @dependabot-preview
- Bump github.com/onsi/ginkgo from 1.11.0 to 1.12.0 (#315) @dependabot-preview
- Improve docker build (#396) @LinuxSuRen
v0.0.28 🌈
What’s Changed
Jenkins CLI now has plugin mechanism. The first plugin allow you share your configuration via git among your team members.
e2e tests could be a good practice to improve the quality of this project. In later, we will increase more test cases.
🚀 Features
- Add support to clean invalid config item (#383) @LinuxSuRen
- Add date as part of version print (#388) @LinuxSuRen
- Add plugin support for jcli commands (#385) @LinuxSuRen
- Add support to open external link (#384) @LinuxSuRen
- Add auto completion for jcli center start (#380) @LinuxSuRen
- Add man page support (#382) @LinuxSuRen
- Add auto completion support for plugin upload (#378) @LinuxSuRen
- Add support to open browser with a specific one (#377) @LinuxSuRen
🐛 Bug Fixes
- Fix the wrong tips of job log command (#375) @LinuxSuRen
- Fix: doc command no need config (#376) @yJunS
📝 Documentation updates
- Commnd documentation improments (#392) @LinuxSuRen
👻 Maintenance
- Fix the broken links in readme file (#393) @LinuxSuRen
- Bump github.com/AlecAivazis/survey/v2 from 2.0.6 to 2.0.7 (#343) @dependabot-preview
🚦 Tests
- Add integration tests (#301) @LinuxSuRen