Build job via CLI and follow

Trigger a job and block until it finishes, streaming console output (-f -v)

java -jar jenkins-cli.jar -s https://<host> -auth user:token build <name> -f -v

tool
jenkins2 commands
tags
jenkinscimonitoring

More jenkins commands

  • curl -X POST -F "jenkinsfile=<Jenkinsfile" https://<host>/pipeline-model-converter/validate

    Lint a Jenkinsfile server-side before commit to catch syntax errors early

all 2 jenkins commands