jenkins/jenkins-get-job

Get Job Configuration

Retrieve the XML configuration of a job

jenkins
job
config

Command

java -jar jenkins-cli.jar -s http://localhost:8080/ get-job my-job

Explanation

Fetches the XML configuration of a job. Useful for backup, replication, or editing job configurations programmatically.

Examples

Save job config to XML file

java -jar jenkins-cli.jar -s http://localhost:8080/ get-job my-job > my-job.xml