Skip to content
Snippets Groups Projects
Commit 5a2a235b authored by Nicola Fulvio Calabria's avatar Nicola Fulvio Calabria
Browse files

Update .gitlab-ci.yml

parent 10a3b41d
No related branches found
No related tags found
No related merge requests found
Pipeline #15568 passed
...@@ -4,6 +4,21 @@ stages: ...@@ -4,6 +4,21 @@ stages:
- deploy - deploy
build: build:
stage: build
tags:
- docker
image: maven:3.6.3-openjdk-14
script:
- mvn clean package -DskipTests -DfinalName=vospace-datamodel
artifacts:
paths:
- target/vospace-datamodel.jar
- pom.xml
expire_in: 7 days
only:
- master
build-test:
stage: build stage: build
tags: tags:
- docker - docker
...@@ -18,7 +33,7 @@ build: ...@@ -18,7 +33,7 @@ build:
only: only:
- test - test
test: test-test:
stage: test stage: test
tags: tags:
- docker - docker
...@@ -30,6 +45,19 @@ test: ...@@ -30,6 +45,19 @@ test:
- test - test
deploy: deploy:
stage: deploy
tags:
- docker
script:
- mvn deploy:deploy-file
-Dfile=target/vospace-datamodel.jar
-DrepositoryId=ia2.snapshots
-DpomFile=pom.xml
-Durl=${IA2_MVN_REPO_SNAPSHOTS}
only:
- master
deploy-test:
stage: deploy stage: deploy
tags: tags:
- docker - docker
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment