Commit 2c3d47cf authored by Sonia Zorba's avatar Sonia Zorba
Browse files

CI: added upload of jar as generic repo package

parent d176d21c
Pipeline #6850 passed with stage
in 4 seconds
......@@ -2,6 +2,7 @@ stages:
- build
- test
- deploy
- publish
.gms_client:
tags:
......@@ -29,7 +30,7 @@ test_gms_client:
script:
- cd gms-client/gms-client
- mvn clean test
test_gms:
stage: test
tags:
......@@ -82,3 +83,14 @@ dockerize_gms:
changes:
- gms/*
- gms-ui/*
upload_jar:
stage: publish
tags:
- shell
only:
- master
script:
# extract jar from Docker image
- docker run --rm --entrypoint cat "${CI_REGISTRY_IMAGE}" /gms.jar > gms.jar
- 'curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file gms.jar "${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/generic/gms/latest/gms.jar"'
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