Skip to content

Instantly share code, notes, and snippets.

@VovaStelmashchuk
Created September 15, 2019 22:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save VovaStelmashchuk/eca7b68fdd929bd0a665334b3cd0bd6c to your computer and use it in GitHub Desktop.
Save VovaStelmashchuk/eca7b68fdd929bd0a665334b3cd0bd6c to your computer and use it in GitHub Desktop.
if [ -f "$file" ]
then
for key in $(cat releaseNote.txt)
do
curl -D- -u $JIRA_USERNAME:$JIRA_PASSWORD -X PUT --data "{"update":{"fixVersions":[{"set":[{"name":"${BUILD_NUMBER}"}]}]}}" -H "Content-Type:application/json" ${JIRA_URL}rest/api/2/issue/${key}
else
echo "$file not found."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment