The Jenkins CLI

In this section, we will review the Jenkins CLI—this is another Jenkins extension point that can be extremely useful in certain situations—typically it is used to run commands against a remote Jenkins server, performing functions such as triggering builds or updating configurations.

How to set it up

In order to use the Jenkins CLI, you need the "jenkins-cli.jar" file.

This can be quickly and easily fetched from your own Jenkins server. If you append "/cli" to the web address of your Jenkins instance, you should see a page similar to this:

How to set it up

This URL provides everything you should need to get started with the Jenkins CLI.

There is a link ...

Get Extending Jenkins now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.