Commit 50c0cab5 authored by Administrator's avatar Administrator

Update .gitlab-ci.yml to include Sonarqube test execution stage.

parent e12f091e
......@@ -2,10 +2,13 @@ variables:
RELEASE_NAME: "SERVICE_NAME"
SERVICE_PORT: 1099
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:
- Build
- Test
- ReleaseCleanup
- ReleaseDeploy
......@@ -17,7 +20,12 @@ Build:
- $(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 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:
stage: ReleaseCleanup
script:
......
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