Skip to content

Commit

Permalink
Update iris-community-job-generator.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
martalite authored Sep 13, 2021
1 parent 70c028d commit b2b149d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion iris-community-job-generator.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ then
JENKINS_JOB_URL=$JENKINS_URL'/job/'$TARGET_FOLDER
fi

curl -s --cookie $COOKIE_JAR $JENKINS_JOB_URL'/createItem?name='$JOB_NAME_TO_GENERATE -H 'Jenkins-Crumb:'$JENKINS_CRUMB -H "Content-Type:text/xml" -u $JENKINS_USER:$JENKINS_PASSWORD --data-binary @$TEMPLATE_PATH
curl -s --cookie $COOKIE_JAR $JENKINS_JOB_URL'/createItem?name='$JOB_NAME_TO_GENERATE \
-H 'Jenkins-Crumb:'$JENKINS_CRUMB \
-H "Content-Type:text/xml" \
-u $JENKINS_USER:$JENKINS_PASSWORD \
--data-binary @$TEMPLATE_PATH \
--data-urlencode json='{"parameter": [{"name":"BRANCH", "value":"$BRANCH"}]}'

rm $TEMPLATE_PATH

0 comments on commit b2b149d

Please sign in to comment.