Skip to content
Snippets Groups Projects
Commit 2c3d47cf authored by Sonia Zorba's avatar Sonia Zorba
Browse files

CI: added upload of jar as generic repo package

parent d176d21c
No related branches found
No related tags found
No related merge requests found
Pipeline #6850 passed
...@@ -2,6 +2,7 @@ stages: ...@@ -2,6 +2,7 @@ stages:
- build - build
- test - test
- deploy - deploy
- publish
.gms_client: .gms_client:
tags: tags:
...@@ -29,7 +30,7 @@ test_gms_client: ...@@ -29,7 +30,7 @@ test_gms_client:
script: script:
- cd gms-client/gms-client - cd gms-client/gms-client
- mvn clean test - mvn clean test
test_gms: test_gms:
stage: test stage: test
tags: tags:
...@@ -82,3 +83,14 @@ dockerize_gms: ...@@ -82,3 +83,14 @@ dockerize_gms:
changes: changes:
- gms/* - gms/*
- gms-ui/* - 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"'
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment