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

truongbb - test ci

parent 77b0dc05
Pipeline #391 failed with stages
in 1 minute and 13 seconds
......@@ -68,9 +68,10 @@ check_quality_gate:
- cd /root/GitlabRunner/repo/spring-ci-advanced
- ls
- chmod +x ./build-test.sh
- export QUALITY_GATE=$(./build-test.sh quality-gate)
# - export QUALITY_GATE=$(./build-test.sh quality-gate)
- export QUALITY_GATE=0
- echo $QUALITY_GATE
- if [ $QUALITY_GATE = 0 ]; then exit 0 fi
- if [[ $QUALITY_GATE = 0 ]] then exit 0 fi
build_up:
stage: build_up
......
......@@ -48,7 +48,7 @@ sub_quality-gate(){
--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')
# echo "Quality gate status: " ${qualityGateStatus}
if [[ ${qualityGateStatus} = "OK" ]]
if [[ ${qualityGateStatus} != "OK" ]]
then
# TODO - Fail quality gate --> stop pipeline???
# echo "*******QUALITY GATE FAILED!**********"
......
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