JENKINS_URL can be specified via the environment variable
$JENKINS_URL. This environment variable is automatically set when Jenkins fork a process during builds, which allows you to use Jenkins CLI from inside the build without explicitly configuring the URL.
For details on authentication methods ("
-auth" parameter or
JENKINS_API_TOKEN environment variables), see Jenkins CLI > Client connection modes > HTTP connection mode.
The list of the available commands depends on the server you are talking to. Visit
https://jenkins.example.com/cli or use '
help' command to list them all: