After Jenkins is deployed, Jenkins is generally manipulated through the Web interface provided by Jenkins.
Some scenarios require a command to manipulate Jenkins, such as a script.
A simple introduction to Jenkins's command line in the Web interface provided by Jenkins, located in the Jenkins CLI , System Management
Click System Management here:
Click on the Jenkins CLI:
Then it will go to the http://xxxip:8080/cli/page.
Looks like this:
You can see that this page gives some introduction to the Jenkins CLI, which is the command-line tool for Jenkins. To use Jenkins's command line, you need to download Jenkins's command-line tool: Jenkins-cli.jar. And all the commands on this page are described in detail. Click on the appropriate command to link to the appropriate introductory document page.
For example, this is an introduction to the build command:
Once downloaded, follow the prompts to manipulate the browser as a command line.
For example, build an existing job:
Java-jar jenkins-cli.jar-s http://xxxip:8080/ build myjob# The above-s parameter specifies the address of the Jenkins service, and then adds the build command, The build command is followed by the job name that needs to be built
Jenkins Command line CLI Jenkins-cli.jar