Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
spring-ci-advanced
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bùi Bá Trường
spring-ci-advanced
Commits
3eeee217
Commit
3eeee217
authored
Aug 01, 2019
by
Bùi Bá Trường
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify
parent
1313cdd8
Pipeline
#480
passed with stage
in 13 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
74 deletions
+74
-74
.gitlab-ci.yml
.gitlab-ci.yml
+74
-74
No files found.
.gitlab-ci.yml
View file @
3eeee217
...
...
@@ -14,12 +14,12 @@ variables:
stages
:
-
checkout_code
-
compile
-
sonnar_scanner
-
check_quality_gate
-
docker_build
-
docker_up
-
docker_push
#
- compile
#
- sonnar_scanner
#
- check_quality_gate
#
- docker_build
#
- docker_up
#
- docker_push
# - send_email
checkout_code
:
...
...
@@ -32,74 +32,74 @@ checkout_code:
-
git stash
-
git pull
compile
:
stage
:
compile
only
:
-
master
-
merge_request
script
:
-
cd /root/GitlabRunner/repo/spring-ci-advanced
-
ls
-
chmod +x ./build-test.sh
-
./build-test.sh compile
sonnar_scanner
:
stage
:
sonnar_scanner
only
:
-
master
-
merge_requests
script
:
-
cd /root/GitlabRunner/repo/spring-ci-advanced
-
ls
-
chmod +x ./build-test.sh
-
./build-test.sh sonar-scan
check_quality_gate
:
stage
:
check_quality_gate
only
:
-
master
-
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
-
echo "Sonar statistic result at --> http://192.168.1.210:9000/dashboard?id=spring-ci-advanced"
-
sh ./stop_job.sh
# force pipeline exit and fail job if QUALITY GATE is FAIL
docker_build
:
stage
:
docker_build
only
:
-
master
# - merge_requesttt
script
:
-
cd /root/GitlabRunner/repo/spring-ci-advanced
-
ls
-
chmod +x ./build-test.sh
-
./build-test.sh docker-build
docker_up
:
stage
:
docker_up
only
:
-
master
# - merge_request
script
:
-
cd /root/GitlabRunner/repo/spring-ci-advanced
-
ls
-
chmod +x ./build-test.sh
-
./build-test.sh docker-up
docker_push
:
stage
:
docker_push
only
:
-
master
# - merge_request
script
:
-
cd /root/GitlabRunner/repo/spring-ci-advanced
-
ls
-
chmod +x ./build-test.sh
-
./build-test.sh docker-push
#
compile:
#
stage: compile
#
only:
#
- master
#
- merge_request
#
script:
#
- cd /root/GitlabRunner/repo/spring-ci-advanced
#
- ls
#
- chmod +x ./build-test.sh
#
- ./build-test.sh compile
#
#
sonnar_scanner:
#
stage: sonnar_scanner
#
only:
#
- master
#
- merge_requests
#
script:
#
- cd /root/GitlabRunner/repo/spring-ci-advanced
#
- ls
#
- chmod +x ./build-test.sh
#
- ./build-test.sh sonar-scan
#
#
check_quality_gate:
#
stage: check_quality_gate
#
only:
#
- master
#
- 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
#
- echo "Sonar statistic result at --> http://192.168.1.210:9000/dashboard?id=spring-ci-advanced"
#
- sh ./stop_job.sh # force pipeline exit and fail job if QUALITY GATE is FAIL
#
#
docker_build:
#
stage: docker_build
#
only:
#
- master
#
# - merge_requesttt
#
script:
#
- cd /root/GitlabRunner/repo/spring-ci-advanced
#
- ls
#
- chmod +x ./build-test.sh
#
- ./build-test.sh docker-build
#
#
docker_up:
#
stage: docker_up
#
only:
#
- master
#
# - merge_request
#
script:
#
- cd /root/GitlabRunner/repo/spring-ci-advanced
#
- ls
#
- chmod +x ./build-test.sh
#
- ./build-test.sh docker-up
#
#
docker_push:
#
stage: docker_push
#
only:
#
- master
#
# - merge_request
#
script:
#
- cd /root/GitlabRunner/repo/spring-ci-advanced
#
- ls
#
- chmod +x ./build-test.sh
#
- ./build-test.sh docker-push
#send_email:
# stage: send_email
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment