Commit b29cc5d2 authored by Administrator's avatar Administrator

Update .gitlab-ci.yml

parent 12a59173
......@@ -2,11 +2,17 @@ image: docker-maven:latest
services:
- docker:dind
cache:
paths:
- .m2/
before_script:
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
build:
image: maven:3-jdk-8:latest
stage: build
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
......@@ -14,6 +20,7 @@ build:
- docker push "$CI_REGISTRY_IMAGE/$CI_PROJECT_NAME:latest"
sonar:
image: maven:3-jdk-8:latest
stage: test
script:
- mvn --batch-mode verify sonar:sonar -Dsonar.exclusions="pom.xml" -Dsonar.host.url=$SONAR_URL -Dsonar.login=$SONAR_LOGIN
......
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