jenkins/jenkins-update-job

Update Job Configuration

Update an existing Jenkins job with new XML config

jenkins
job
update

Command

java -jar jenkins-cli.jar -s http://localhost:8080/ update-job my-job < config.xml

Explanation

Updates the configuration of an existing job. Useful for applying changes programmatically without using the Jenkins UI.

Examples

Update job configuration

java -jar jenkins-cli.jar -s http://localhost:8080/ update-job my-job < new-config.xml