Newer
Older
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
stages:
- build
- deploy
build:
stage: build
tags:
- docker
image: maven:3.6.3-openjdk-14
script:
- mvn clean package -Pbuild-jar
artifacts:
paths:
- target/vospace-parent*.jar
- pom.xml
expire_in: 7 days
only:
- master
deploy:
stage: deploy
tags:
- docker
script:
- mvn deploy:deploy-file
-Dfile=pom.xml
-DrepositoryId=ia2.snapshots
-DpomFile=pom.xml
-Durl=${IA2_MVN_REPO_SNAPSHOTS}
- file=$(ls target/vospace-parent*.jar)
- mvn deploy:deploy-file
-Dfile=$file
-DrepositoryId=ia2.snapshots
-DpomFile=pom.xml
-Durl=${IA2_MVN_REPO_SNAPSHOTS}
only:
- master