To access the Jenkins CLI feature’s page through the operations center interface and download the CLI tool:
java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ --auth admin:11cd450e8f9e3f52cb60ea9d35d0387299 help
List jobs:
java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ -auth admin:11cd450e8f9e3f52cb60ea9d35d0387299 list-jobs
Build Job:
java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ -auth admin:11cd450e8f9e3f52cb60ea9d35d0387299 build test
Restart Jenkins:
java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ -auth admin:11cd450e8f9e3f52cb60ea9d35d0387299 restart
Install/update plugin github-branch-source:
java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ -auth admin:11cd450e8f9e3f52cb60ea9d35d0387299 install-plugin cloudbees-bitbucket-branch-source
Disable plugin:
java -jar jenkins-cli.jar -s http://127.0.0.1:8080/ -auth admin:11cd450e8f9e3f52cb60ea9d35d0387299 disable-plugin github-branch-source