Commit b8950819 authored by Bùi Bá Trường's avatar Bùi Bá Trường

truongbb - test ci

parent 1b47f59d
Pipeline #382 failed with stages
in 21 seconds
...@@ -47,14 +47,14 @@ sub_quality-gate(){ ...@@ -47,14 +47,14 @@ sub_quality-gate(){
qualityGateStatus=$(curl --request POST \ qualityGateStatus=$(curl --request POST \
--url http://192.168.1.210:9000/api/qualitygates/project_status?projectKey=spring-ci \ --url http://192.168.1.210:9000/api/qualitygates/project_status?projectKey=spring-ci \
--header 'cache-control: no-cache' --header 'content-type: application/json' | jq -r '.projectStatus.status') --header 'cache-control: no-cache' --header 'content-type: application/json' | jq -r '.projectStatus.status')
echo "Quality gate status: " ${qualityGateStatus} # echo "Quality gate status: " ${qualityGateStatus}
if [[ ${qualityGateStatus} != "OK" ]] if [[ ${qualityGateStatus} != "OK" ]]
then then
# TODO - Fail quality gate --> stop pipeline??? # TODO - Fail quality gate --> stop pipeline???
echo "*******QUALITY GATE FAILED!**********" # echo "*******QUALITY GATE FAILED!**********"
return 0 return 0
else else
echo "*******QUALITY GATE PASSED!**********" # echo "*******QUALITY GATE PASSED!**********"
return 1 return 1
fi fi
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment