Commit 209faf50 authored by femiadeyemi's avatar femiadeyemi
Browse files

separate deploy of artifact from trigger of

a downstream ci pipeline.
parent f38ed3b6
Pipeline #42590 failed with stages
in 11 minutes and 8 seconds
...@@ -2,8 +2,8 @@ stages: ...@@ -2,8 +2,8 @@ stages:
- build - build
- test - test
- test_sonar - test_sonar
- package
- deploy - deploy
- trigger
variables: variables:
MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode" MAVEN_CLI_OPTS: "-s .m2/settings.xml --batch-mode"
......
...@@ -58,24 +58,19 @@ test_node14: ...@@ -58,24 +58,19 @@ test_node14:
- apt-get install -y google-chrome-stable - apt-get install -y google-chrome-stable
script: npm install-test script: npm install-test
packaging: deploy:
only: only:
- master - master
- merge_requests - merge_requests
stage: package stage: deploy
image: maven:latest image: maven:latest
script: "mvn -DskipTests clean package" script: mvn $MAVEN_CLI_OPTS deploy
artifacts:
paths:
- "target/*.jar"
expire_in: 600 seconds
deploy: trigger:
only: only:
- master - master
- merge_requests - merge_requests
stage: deploy stage: trigger
image: maven:latest
script: mvn $MAVEN_CLI_OPTS deploy
trigger: trigger:
project: hifis-technical-platform/helmholtz-marketplace-server project: hifis-technical-platform/helmholtz-marketplace-server
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment