-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
58 lines (51 loc) · 1.08 KB
/
.gitlab-ci.yml
File metadata and controls
58 lines (51 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
---
image:
name: maven:3.9-eclipse-temurin-17
variables:
MAVEN_OPTS: "-Xmx256m"
stages:
- build
- deploy
- analyze
maven-build:
stage: build
environment: staging
script:
- "mvn spotless:check"
- "mvn -U package"
tags:
- docker
artifacts:
when: always
paths:
- "**/target/surefire-reports/TEST-*.xml"
reports:
junit:
- "**/target/surefire-reports/TEST-*.xml"
maven-deploy:
stage: deploy
environment: staging
script:
- "mvn -U deploy -DperformRelease -DskipTests"
rules:
- if: $CI_COMMIT_BRANCH == "main"
- if: $CI_COMMIT_BRANCH == "dev"
- if: $CI_COMMIT_BRANCH =~ /^ft-.*-deploy$/
- if: $CI_COMMIT_BRANCH =~ /^hf-.*$/
tags:
- docker
sonar-analyze:
needs: []
stage: analyze
environment: staging
script:
- mvn -U verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar
-Dsonar.projectBranch=dev
-DskipTests
-Dsonar.host.url="https://sonar.tools.kobalt.fr"
rules:
- if: $CHECK_DEPENDENCIES == "true"
when: never
- when: always
tags:
- docker