Last active
September 15, 2019 21:58
-
-
Save VovaStelmashchuk/76cad3d94899e2e03cae3bad0365dae0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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
Article: https://vovachkablog.wordpress.com/2018/06/14/ci-and-cd-for-lazy-people-😯/