-
Notifications
You must be signed in to change notification settings - Fork 1
/
.gitlab-ci.yml
49 lines (44 loc) · 1.14 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
image: wcr.io/mira/docker-maven:3.5.0-jdk9.0.1
stages:
- maven_build
- maven_deploy
- trigger
maven_build:
stage: maven_build
script:
- export
- echo $MAVEN_SETTINGS_XML > settings.xml
- mvn -B -s settings.xml clean install
artifacts:
when: always
paths:
- "*/target/test-output"
- "*/target/surefire-reports"
- "*/target/failsafe-reports"
tags:
- docker
- privileged
maven_deploy:
stage: maven_deploy
script:
- export
- echo $MAVEN_SETTINGS_XML > settings.xml
- >
mvn -B -DaltSnapshotDeploymentRepository=snapshots::default::$MAVEN_SNAPSHOTS_URL
-DaltReleaseDeploymentRepository=releases::default::$MAVEN_RELEASES_URL
-DskipTests=true -s settings.xml clean install deploy
artifacts:
when: always
paths:
- "*/target/test-output"
- "*/target/surefire-reports"
- "*/target/failsafe-reports"
tags:
- docker
- privileged
trigger-coherence-grpc:
stage: trigger
script:
- >
curl --insecure --request POST --form "token=$CI_JOB_TOKEN" --form ref=master
https://gitlab-odx.oracle.com/api/v4/projects/572/trigger/pipeline