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
"text": "🚨 @here '${{ env.JOB_NAME }}' failed to be triggered, please check https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} for more details."
45
-
}' \
46
-
https://slack.com/api/chat.postMessage
35
+
echo "Triggering Jenkins Job: $JOB_NAME"
36
+
if ! curl -X POST "$JENKINS_URL/job/$JOB_NAME/buildWithParameters" --fail --user "$JENKINS_USER:$JENKINS_API_TOKEN" -i -v; then
37
+
echo "Error: Jenkins job trigger failed"
38
+
39
+
# Send Slack message
40
+
curl -X POST -H 'Content-type: application/json' \
41
+
-H "Authorization: Bearer $SLACK_BOT_TOKEN" \
42
+
--data '{
43
+
"channel": "#releng-team",
44
+
"text": "🚨 @here '$JOB_NAME' failed to be triggered, please check https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }} for more details",
0 commit comments