-
Notifications
You must be signed in to change notification settings - Fork 0
/
.gitlab-ci.yml
69 lines (66 loc) · 1.59 KB
/
.gitlab-ci.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
stages:
- build
- test
build:mvn:
stage: build
image: maven:3-openjdk-8
variables:
MAVEN_OPTS: >-
-Dhttps.protocols=TLSv1.2
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
-Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true
MAVEN_CLI_OPTS: >-
--batch-mode
--errors
--fail-at-end
--show-version
--no-transfer-progress
-DinstallAtEnd=true
-DdeployAtEnd=true
script:
- chmod +x mvnw
- ./mvnw -v
- ./mvnw clean package -DskipTests=false -s settings.xml
cache:
key: "${CI_JOB_NAME}"
paths:
- .m2/repository
only:
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $MVNW == "true"
build:mvnw:
stage: build
image: maven:3-openjdk-8
variables:
MAVEN_OPTS: >-
-Dhttps.protocols=TLSv1.2
-Dmaven.repo.local=$CI_PROJECT_DIR/.m2/repository
-Dorg.slf4j.simpleLogger.showDateTime=true
-Djava.awt.headless=true
MAVEN_CLI_OPTS: >-
--batch-mode
--errors
--fail-at-end
--show-version
--no-transfer-progress
-DinstallAtEnd=true
-DdeployAtEnd=true
script:
- mvn -v
- mvn clean package -DskipTests=false -s settings.xml
cache:
key: "${CI_JOB_NAME}"
paths:
- .m2/repository
only:
variables:
- $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
include:
- template: Jobs/Dependency-Scanning.gitlab-ci.yml
gemnasium-maven-dependency_scanning:
rules:
- changes:
- pom.xml
- "**/pom.xml"
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $DEPENDENCY_SCANNING == "true"