From 2e96b9867a9f64c4d2377d00d70cf0dd9421aa74 Mon Sep 17 00:00:00 2001 From: Dimitrios Giannopoulos Date: Fri, 8 Dec 2023 15:01:20 +0000 Subject: [PATCH 1/3] added mvn artifact ci automation --- .gitlab-ci.yml | 8 ++++++++ ci_settings.xml | 16 ++++++++++++++++ pom.xml | 17 +++++++++++++++++ 3 files changed, 41 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 ci_settings.xml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..db0ad64 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,8 @@ +stages: + - deploy + +deploy: + stage: deploy + image: maven:3.9.5-ibm-semeru-17-focal + script: + - mvn deploy -s ci_settings.xml -DskipTests diff --git a/ci_settings.xml b/ci_settings.xml new file mode 100644 index 0000000..69ad06e --- /dev/null +++ b/ci_settings.xml @@ -0,0 +1,16 @@ + + + + gitlab-maven + + + + Job-Token + ${CI_JOB_TOKEN} + + + + + + diff --git a/pom.xml b/pom.xml index 1119337..1d7afc2 100644 --- a/pom.xml +++ b/pom.xml @@ -27,6 +27,23 @@ 1.7.28 + + + gitlab-maven + https://labs.etsi.org/rep/api/v4/groups/260/-/packages/maven + + + + + gitlab-maven + ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven + + + gitlab-maven + ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven + + + -- GitLab From fb0b2de128f422121c31dc25442c4ee9c3ed32e8 Mon Sep 17 00:00:00 2001 From: Dimitrios Giannopoulos Date: Fri, 8 Dec 2023 15:20:30 +0000 Subject: [PATCH 2/3] used generic CICD var for URL --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 1d7afc2..81e2604 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ gitlab-maven - https://labs.etsi.org/rep/api/v4/groups/260/-/packages/maven + ${CI_API_V4_URL}/groups/260/-/packages/maven -- GitLab From e42f494a48dc11229fc88efe87a2130de4239d9c Mon Sep 17 00:00:00 2001 From: Dimitrios Giannopoulos Date: Fri, 8 Dec 2023 15:24:26 +0000 Subject: [PATCH 3/3] used full URL for group registry --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 81e2604..1d7afc2 100644 --- a/pom.xml +++ b/pom.xml @@ -30,7 +30,7 @@ gitlab-maven - ${CI_API_V4_URL}/groups/260/-/packages/maven + https://labs.etsi.org/rep/api/v4/groups/260/-/packages/maven -- GitLab