From ac775207f8c0a44248ebc114b97092cce5a32a17 Mon Sep 17 00:00:00 2001 From: BALDO Frederick Date: Fri, 2 Jun 2023 08:36:06 +0200 Subject: [PATCH 1/2] Update release & deploy jobs --- .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 5cf998d30e9..4c1fe7d7004 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,7 +18,6 @@ variables: MVN_FORBID_SNAPSHOT_DEPENDENCIES_DISABLED: "true" BUILD_FOR_INSTALLER: "false" MAVEN_DEPLOY_ENABLED: "true" - MAVEN_DEPLOY_ARGS: "${MAVEN_DEPLOY_ARGS} -fn" MVN_SEMREL_RELEASE_DISABLED: "true" MAVEN_SETTINGS_FILE: $MVN_SETTINGS_FILE @@ -51,9 +50,10 @@ mvn-sonar: rules: - if: $BUILD_FOR_INSTALLER == "false" +# Used to publish release on Github mvn-release: rules: - - if: $BUILD_FOR_INSTALLER == "false" + - when: manual mvn-deploy-release: rules: From 7f9781af473762f80036945a4a8052de9b354daf Mon Sep 17 00:00:00 2001 From: BALDO Frederick Date: Fri, 2 Jun 2023 09:02:21 +0200 Subject: [PATCH 2/2] Turn release job to optional --- .gitlab-ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c1fe7d7004..350c939877b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -50,10 +50,11 @@ mvn-sonar: rules: - if: $BUILD_FOR_INSTALLER == "false" -# Used to publish release on Github +# Used to publish release on Github (only manual action & non blocking) mvn-release: rules: - when: manual + allow_failure: true mvn-deploy-release: rules: