File tree Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Expand file tree Collapse file tree 1 file changed +16
-3
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,19 @@ echo "switching back to ebc-gateway-http directory"
9191cd scripts/pipeline/ebc-gateway-http
9292
9393if [[ " $keep_cluster " == 0 ]]; then
94+ if (( (rc & KIND_E2 E_TEST) > 0 )) ; then
95+ slack_users=$( get_env slack_users)
96+ echo " slack_users=$slack_users "
97+ eval " arr=($slack_users )"
98+ for user in " ${arr[@]} " ; do
99+ echo " user=$user "
100+ curl -X POST -H ' Content-type: application/json' --data ' {"text":"<' $user ' > kind accceptance test failure see below "}' $( get_env slack_web_hook_url)
101+ echo " "
102+ done
103+ pipeline_url=" https://cloud.ibm.com/devops/pipelines/tekton/${PIPELINE_ID} /runs/${PIPELINE_RUN_ID} ?env_id=ibm:yp:us-south"
104+ curl -X POST -H ' Content-type: application/json' --data ' {"text":"Your kind acceptance test failed."}' $( get_env slack_web_hook_url) < /dev/null
105+ curl -X POST -H ' Content-type: application/json' --data ' {"text":"Failing pipeline: ' $pipeline_url ' "}' $( get_env slack_web_hook_url) < /dev/null
106+ fi
94107 ./ebc_complete.sh
95108else
96109 hours=$( get_env ebc_autocomplete_hours " 6" )
103116 echo " slack_users=$slack_users "
104117 eval " arr=($slack_users )"
105118 for user in " ${arr[@]} " ; do
106- echo " user=$user "
107- curl -X POST -H ' Content-type: application/json' --data ' {"text":"<' $user ' > accceptance test failure see below "}' $( get_env slack_web_hook_url)
108- echo " "
119+ echo " user=$user "
120+ curl -X POST -H ' Content-type: application/json' --data ' {"text":"<' $user ' > accceptance test failure see below "}' $( get_env slack_web_hook_url)
121+ echo " "
109122 done
110123 pipeline_url=" https://cloud.ibm.com/devops/pipelines/tekton/${PIPELINE_ID} /runs/${PIPELINE_RUN_ID} ?env_id=ibm:yp:us-south"
111124 curl -X POST -H ' Content-type: application/json' --data ' {"text":"Your acceptance test failed."}' $( get_env slack_web_hook_url) < /dev/null
You can’t perform that action at this time.
0 commit comments