Skip to content

Instantly share code, notes, and snippets.

@liningtan
Last active May 25, 2021 14:31
Show Gist options
  • Save liningtan/58940b1a16903545a584d63e874b0b2e to your computer and use it in GitHub Desktop.
Save liningtan/58940b1a16903545a584d63e874b0b2e to your computer and use it in GitHub Desktop.
Remote Jenkin build
#https://JENKINS_URL/user/username/configure -> API Token
#token_auth under BuildItem -> Configure -> Build Trigger -> Trigger builds remotely
curl -X POST https://{api_token_name}:{api_token}@JENKINS_URL/job/item/buildWithParameters?token={token_auth}&PARAM=value1&PARAM2=value2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment