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

truongbb - test ci

parent 3421c981
Pipeline #400 failed with stages
in 10 seconds
......@@ -20,8 +20,8 @@ stages:
# - compile
# - sonnar_scanner
- check_quality_gate
# - build_up # for merge request
# - send_email
- build_up # for merge request
- send_email
#checkout:
# stage: checkout
......@@ -71,27 +71,27 @@ check_quality_gate:
# - export QUALITY_GATE=$(./build-test.sh quality-gate)
- export QUALITY_GATE=0
- echo $QUALITY_GATE
- exit 0
- exit -1
- ls
# - if [[ $QUALITY_GATE = 0 ]] then exit 0 fi
#build_up:
# stage: build_up
# only:
# # - master
# - merge_requests
# script:
# - cd /root/GitlabRunner/repo/spring-ci-advanced
# - ls
#
#send_email:
# stage: send_email
# only:
# - master
# # - merge_requests
# script:
# - curl --request POST
# --url https://api.sendgrid.com/v3/mail/send
# --header 'Authorization:Bearer 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'
# --header 'Content-Type:application/json'
# --data '{"personalizations":[{"to":[{"email":"truongbb96@gmail.com"}]}],"from":{"email":"truongbb@itsol.vn"},"subject":"CI pipeline result","content":[{"type":"text/plain","value":"CI pipeline done!"}]}'
\ No newline at end of file
build_up:
stage: build_up
only:
# - master
- merge_requests
script:
- cd /root/GitlabRunner/repo/spring-ci-advanced
- ls
send_email:
stage: send_email
only:
- master
# - merge_requests
script:
- curl --request POST
--url https://api.sendgrid.com/v3/mail/send
--header 'Authorization:Bearer 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'
--header 'Content-Type:application/json'
--data '{"personalizations":[{"to":[{"email":"truongbb96@gmail.com"}]}],"from":{"email":"truongbb@itsol.vn"},"subject":"CI pipeline result","content":[{"type":"text/plain","value":"CI pipeline done!"}]}'
\ No newline at end of file
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