jenkins/jenkins-disable-job

Disable Job

Disable a job to prevent execution

jenkins
job
disable

Command

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

Explanation

Disables a job so it cannot be run until re-enabled. Useful for maintenance or pausing automated builds.

Examples

Disable job my-job

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