Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 284 Bytes

jenkins.md

File metadata and controls

11 lines (8 loc) · 284 Bytes

Jenkins

  • build on trigger
#!/bin/bash
set -e
set -x

CRUMB=$(curl -s -u "{UID:TOKEN}" '{JENKINS_URL}/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)') ;
curl -X POST -u "{UID:TOKEN}" -H "$CRUMB" "{JENKINS_URL}/job/{JOB_NAME}/build?token=TRIGGER_TOKEN"