Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
ssa
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sthankachan
ssa
Commits
50c0cab5
Commit
50c0cab5
authored
Jan 04, 2019
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .gitlab-ci.yml to include Sonarqube test execution stage.
parent
e12f091e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
.gitlab-ci.yml
.gitlab-ci.yml
+9
-1
No files found.
.gitlab-ci.yml
View file @
50c0cab5
...
@@ -2,10 +2,13 @@ variables:
...
@@ -2,10 +2,13 @@ variables:
RELEASE_NAME
:
"
SERVICE_NAME"
RELEASE_NAME
:
"
SERVICE_NAME"
SERVICE_PORT
:
1099
SERVICE_PORT
:
1099
REGISTRY_URL
:
279716074232.dkr.ecr.us-east-1.amazonaws.com/pgdockrepo
REGISTRY_URL
:
279716074232.dkr.ecr.us-east-1.amazonaws.com/pgdockrepo
SONAR_URL
:
"
http://pg-sonar-altimetrik-com-82028342.us-west-2.elb.amazonaws.com"
SONAR_LOGIN
:
"
cc3fc35cad01a325d1b3904bcf3aa38b153fa7f1"
stages
:
stages
:
-
Build
-
Build
-
Test
-
ReleaseCleanup
-
ReleaseCleanup
-
ReleaseDeploy
-
ReleaseDeploy
...
@@ -17,7 +20,12 @@ Build:
...
@@ -17,7 +20,12 @@ Build:
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
$(aws ecr get-login --no-include-email --region us-east-1)
-
docker build -t 279716074232.dkr.ecr.us-east-1.amazonaws.com/pgdockrepo:$CI_PIPELINE_ID .
-
docker build -t 279716074232.dkr.ecr.us-east-1.amazonaws.com/pgdockrepo:$CI_PIPELINE_ID .
-
docker push 279716074232.dkr.ecr.us-east-1.amazonaws.com/pgdockrepo:$CI_PIPELINE_ID
-
docker push 279716074232.dkr.ecr.us-east-1.amazonaws.com/pgdockrepo:$CI_PIPELINE_ID
sonar
:
stage
:
Test
script
:
-
mvn --batch-mode verify sonar:sonar -Dsonar.exclusions="pom.xml" -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN
ReleaseCleanup
:
ReleaseCleanup
:
stage
:
ReleaseCleanup
stage
:
ReleaseCleanup
script
:
script
:
...
...
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