You can access various features in Jenkins through a command-line tool.
Command-line options in Jenkins using Jenkins CLI
Getting ready
Download the Jenkins-cli.jar file from the link available on the Jenkins dashboard.
How to do it...
- Go to the location where Jenkins-cli.jar is downloaded and execute the java -jar jenkins-cli.jar -s http://localhost:8080/ help command to see the help of CLI commands:
- Execute the following commands:
java -jar jenkins-cli.jar -s http://localhost:8080/ version java -jar jenkins-cli.jar -s http://localhost:8080/ who-am-i java -jar jenkins...