From 0394c37c6481d3bdbedf6bcd54e1f4de331093ad Mon Sep 17 00:00:00 2001 From: Dimitrios Giannopoulos Date: Fri, 8 Dec 2023 15:13:11 +0000 Subject: [PATCH 1/2] added mvn artifact ci automation --- .gitlab-ci.yml | 8 ++++++++ ci_settings.xml | 16 ++++++++++++++++ pom.xml | 17 +++++++++++++++-- 3 files changed, 39 insertions(+), 2 deletions(-) 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 f9f92e8..19bfec2 100644 --- a/pom.xml +++ b/pom.xml @@ -27,7 +27,7 @@ - + opendaylight-release opendaylight-release @@ -41,8 +41,15 @@ - + + 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 + opendaylight-release opendaylight-release @@ -54,6 +61,12 @@ https://nexus.opendaylight.org/content/repositories/opendaylight.snapshot/ + + + gitlab-maven + ${CI_API_V4_URL}/projects/${CI_PROJECT_ID}/packages/maven + + -- GitLab From 55a9fb6662b190a7f19f4c7bd22f106138cdfd9e Mon Sep 17 00:00:00 2001 From: Dimitrios Giannopoulos Date: Fri, 8 Dec 2023 15:15:32 +0000 Subject: [PATCH 2/2] fixed repository duplicate --- pom.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index 19bfec2..5ebb026 100644 --- a/pom.xml +++ b/pom.xml @@ -44,11 +44,7 @@ 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 + ${CI_API_V4_URL}/groups/260/-/packages/maven opendaylight-release @@ -62,6 +58,10 @@ + + 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