Commit b29cc5d2 authored by Administrator's avatar Administrator

Update .gitlab-ci.yml

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