diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 0aefe0e78e09fdc2d444d4051f052af755c2d100..d651bdf6d4076501bd231d91407bc66dacb387c7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,5 @@ stages: deploy: stage: deploy image: maven:3.9.5-ibm-semeru-17-focal - before_script: - - echo $CI_API_V4_URL script: - - 'mvn deploy -s ci_settings.xml' + - mvn deploy -s ci_settings.xml -Drepo.url=${CI_API_V4_URL}/projects/276/packages/maven diff --git a/pom.xml b/pom.xml index 205cab0127b63813a93693b5579ef0412ee5b3d6..efc30ee07a28eb7f33372e171bc7d4d08a6cf759 100644 --- a/pom.xml +++ b/pom.xml @@ -23,17 +23,17 @@ <repositories> <repository> <id>gitlab-maven</id> - <url>${CI_API_V4_URL}/projects/276/packages/maven</url> + <url>${repo.url}</url> </repository> </repositories> <distributionManagement> <repository> <id>gitlab-maven</id> - <url>${CI_API_V4_URL}/projects/276/packages/maven</url> + <url>${repo.url}</url> </repository> <snapshotRepository> <id>gitlab-maven</id> - <url>${CI_API_V4_URL}/projects/276/packages/maven</url> + <url>${repo.url}</url> </snapshotRepository> </distributionManagement>