#!/bin/bash -x CRUMB=$(curl -s -u "lf:lf" 'http://12.234.32.117/jenkins/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)') curl -v -u "lf:929b8c2bea4c4c6847778f8cd6241cbf" -H "$CRUMB" -d '4142430A017' http://12.234.32.117/jenkins/job/external-job/postBuildResult