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