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

truongbb - test ci

parent 59f8af91
Pipeline #493 failed with stages
in 1 minute and 17 seconds
......@@ -38,7 +38,6 @@ compile:
- merge_request
script:
- cd /root/GitlabRunner/repo/spring-ci-advanced
- ls
- chmod +x ./build-test.sh
- ./build-test.sh compile
......@@ -49,7 +48,6 @@ sonnar_scanner:
- merge_requests
script:
- cd /root/GitlabRunner/repo/spring-ci-advanced
- ls
- chmod +x ./build-test.sh
- ./build-test.sh sonar-scan
......@@ -60,7 +58,6 @@ check_quality_gate:
- merge_requests
script:
- cd /root/GitlabRunner/repo/spring-ci-advanced
- ls
- chmod +x ./build-test.sh
- export QUALITY_GATE=$(./build-test.sh quality-gate)
- echo $QUALITY_GATE
......@@ -74,7 +71,6 @@ docker_build:
# - merge_requesttt
script:
- cd /root/GitlabRunner/repo/spring-ci-advanced
- ls
- chmod +x ./build-test.sh
- ./build-test.sh docker-build
......@@ -85,7 +81,6 @@ docker_up:
# - merge_request
script:
- cd /root/GitlabRunner/repo/spring-ci-advanced
- ls
- chmod +x ./build-test.sh
- ./build-test.sh docker-up
......@@ -96,6 +91,5 @@ docker_push:
# - merge_request
script:
- cd /root/GitlabRunner/repo/spring-ci-advanced
- ls
- chmod +x ./build-test.sh
- ./build-test.sh docker-push
\ No newline at end of file
......@@ -2,7 +2,7 @@
# stop pipeline if QUALITY GATE is FAIL
if [[ $QUALITY_GATE = 0 ]]
if [[ $QUALITY_GATE = "NOK" ]]
then
echo "QUALITY GATE FAILED. CHECK SONAR SCANNER RESULT!"
export QUALITY_GATE="OK"
......
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