cli
references:
setup cli
get port
Jenkins config
~/.ssh/config
using cli
or
get client (
jenkins-cli.jar
)use cli
handle -auth
using directly in command line
using file
using environment
jnlp
[!NOTE|label:references:]
ERROR: This command is requesting the -remoting mode which is no longer supported
ERROR: This command is requesting the -remoting mode which is no longer supported
solution
i.e.:
execute groovysh
execute the script via https
[!TIP|label:references:]
A Jenkins Admin can execute groovy scripts remotely by sending an HTTP POST request to /script/ url or /scriptText/.
format
example : curl submitting groovy file via bash
example : Python submitting groovy file providing username and api token
execute cil via kubectl
[!TIP|label:references:]
man cli
CMD | DESCRIPTION |
---|---|
| Adds jobs to view. |
| Apply YAML configuration to instance |
| Builds a job, and optionally waits until its completion. |
| Cancel the effect of the "quiet-down" command. |
| Check YAML configuration to instance |
| Clears the build queue. |
| Reconnect to a node(s) |
| Retrieves console output of a build. |
| Copies a job. |
| Create Credential by XML |
| Create Credentials Domain by XML |
| Creates a new job by reading stdin as a configuration XML file. |
| Creates a new node by reading stdin as a XML configuration. |
| Creates a new view by reading stdin as a XML configuration. |
| Validate a Jenkinsfile containing a Declarative Pipeline |
| Deletes build record(s). |
| Delete a Credential |
| Delete a Credentials Domain |
| Deletes job(s). |
| Deletes node(s) |
| Deletes view(s). |
| Disables a job. |
| Disable one or more installed plugins. |
| Disconnects from a node. |
| Enables a job. |
| Enables one or more installed plugins transitively. |
| Export jenkins configuration as YAML |
| Get a Credentials as XML (secrets redacted) |
| Get a Credentials Domain as XML |
| List available gradle installations |
| Dumps the job definition XML to stdout. |
| Dumps the node definition XML to stdout. |
| Dumps the view definition XML to stdout. |
| Executes the specified Groovy script. |
| Runs an interactive groovy shell. |
| Lists all the available commands or a detailed description of single command. |
| Import credentials as XML. The output of "list-credentials-as-xml" can be used as input here as is, the only needed change is to set the actual Secrets which are redacted in the output. |
| Installs a plugin either from a file, an URL, or from update center. |
| Mark the build to keep the build forever. |
| Dumps the changelog for the specified build(s). |
| Lists the Credentials in a specific Store |
| Export credentials as XML. The output of this command can be used as input for "import-credentials-as-xml" as is, the only needed change is to set the actual Secrets which are redacted in the output. |
| List Credentials Context Resolvers |
| List Credentials Providers |
| Lists all jobs in a specific view or item group. |
| Outputs a list of installed plugins. |
| Reads stdin and sends that out as an e-mail. |
| Stop using a node for performing builds temporarily, until the next "online-node" command. |
| Resume using a node for performing builds, to cancel out the earlier "offline-node" command. |
| Quiet down Jenkins, in preparation for a restart. Don’t start any builds. |
| Discard all the loaded data in memory and reload everything from file system. Useful when you modified config files directly on disk. |
| Reload JCasC YAML configuration |
| Reload job(s) |
| Removes jobs from view. |
| Replay a Pipeline build with edited script taken from standard input |
| Restart Jenkins. |
| Restart a completed Declarative Pipeline build from a given stage. |
| Safely restart Jenkins. |
| Puts Jenkins into the quiet mode, wait for existing builds to be completed, and then shut down Jenkins. |
| Outputs the session ID, which changes every time Jenkins restarts. |
| Sets the description of a build. |
| Sets the displayName of a build. |
| Set external monitor job result. |
| Immediately shuts down Jenkins server. |
| Stop all running builds for job(s) |
| Update Credentials by XML |
| Update Credentials Domain by XML |
| Updates the job definition XML from stdin. The opposite of the get-job command. |
| Updates the node definition XML from stdin. The opposite of the get-node command. |
| Updates the view definition XML from stdin. The opposite of the get-view command. |
| Outputs the current version. |
| Wait for a node to become offline. |
| Wait for a node to become online. |
| Reports your credential and permissions. |
Last updated