COOKIE_JAR = "location"
CRUMB=$(curl -u "Username:password" --cookie-jar "$COOKIE_JAR" "$SERVER/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,%22:%22,//crumb)")
curl -X POST -u "username:password" --cookie "$COOKIE_JAR" -H "$CRUMB" "$SERVER_NAME"/job/someJob/build
There does not seem to be a question here. What are you looking for from us?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.