You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Jenkinsfile
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1160,6 +1160,13 @@ EOF
1160
1160
-d "{\\"body\\": \\"I am a bot, here is the pushed image/manifest for this PR for commit ${COMMIT_SHA:0:7} : \\n\\n\\`${GITHUBIMAGE}:${META_TAG}\\`\\"}"
1161
1161
fi
1162
1162
'''
1163
+
} else {
1164
+
sh '''#! /bin/bash
1165
+
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-d "{\\"body\\": \\"I am a bot, the build for PR commit ${COMMIT_SHA:0:7} failed and as a result no CI test was attempted and no images were pushed.\\"}"
Copy file name to clipboardExpand all lines: ansible/roles/repository/templates/Jenkinsfile.j2
+7Lines changed: 7 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1592,6 +1592,13 @@ EOF
1592
1592
-d "{\\"body\\": \\"I am a bot, here is the pushed image/manifest for this PR for commit ${COMMIT_SHA:0:7} : \\n\\n\\`${GITHUBIMAGE}:${META_TAG}\\`\\"}"
1593
1593
fi
1594
1594
'''
1595
+
} else {
1596
+
sh '''#! /bin/bash
1597
+
curl -X POST -H "Authorization: token $GITHUB_TOKEN" \
-d "{\\"body\\": \\"I am a bot, the build for PR commit ${COMMIT_SHA:0:7} failed and as a result no CI test was attempted and no images were pushed.\\"}"
0 commit comments