Groovy script to execute multiple curl command using HTTPBuilder.

Nikhil Jain October 14, 2021

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

1 answer

0 votes
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 15, 2021

There does not seem to be a question here.  What are you looking for from us?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events