Skip to content

Instantly share code, notes, and snippets.

@VovaStelmashchuk
Last active September 15, 2019 21:58
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/76cad3d94899e2e03cae3bad0365dae0 to your computer and use it in GitHub Desktop.
Save VovaStelmashchuk/76cad3d94899e2e03cae3bad0365dae0 to your computer and use it in GitHub Desktop.
file="releaseNote.txt"
if [ -f “$file” ]
then
echo "$file found."
message="We uploaded the new build"
for key in $(cat releaseNote.txt)
do
message=$"${message} n ${JIRA_URL}browse/$key"
done
curl -X POST -H 'Content-type: application/json' — data "{"text ":"$message"}" ${SLACK_HOOK}
else
echo "$file not found."
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment