From 1c408edadfc3f7ef3dd7030d37d252c7e9dac2b2 Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Fri, 21 Aug 2026 19:17:09 +0200 Subject: [PATCH] introduce Alpha/Beta/Final release qualifier -Alpha: default, local build, pull requests -Beta: build for master branch after submitting pull request -Final: build for release tag -UNOFFICIAL: drop non-standard qualifier --- Jenkinsfile | 8 ++++---- pom.xml | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 46631bf..b770ec8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,20 +14,20 @@ pipeline { steps { sh ''' set -xeu - withOfficialSuffix= + releaseQualifier=-Alpha if [[ ${TAG_NAME-} == v* ]] \ && [[ ${JOB_NAME-} == "continuous/${TAG_NAME-}" ]] \ && [[ $(git rev-parse refs/tags/${TAG_NAME-}) == "$(git rev-parse HEAD)" ]] \ ; then - withOfficialSuffix='-DunofficialSuffix=' + releaseQualifier='-Final' elif [[ ${BRANCH_NAME-} == master ]] \ && [[ ${JOB_NAME-} == "continuous/${BRANCH_NAME-}" ]] \ && [[ $(git rev-parse refs/remotes/origin/${BRANCH_NAME-}) == "$(git rev-parse HEAD)" ]] \ ; then - withOfficialSuffix='-DunofficialSuffix=' + releaseQualifier='-Beta' fi mvn -N -B generate-resources - mvn -B clean verify ${withOfficialSuffix} + mvn -B clean verify "-DreleaseQualifier=${releaseQualifier}" ! test -r ./p2 mv sites/org.eclipse.tea.repository/target/repository p2 test -r ./p2/. diff --git a/pom.xml b/pom.xml index 41dd25d..c048675 100644 --- a/pom.xml +++ b/pom.xml @@ -54,7 +54,7 @@ pom - '-UNOFFICIAL' + -Alpha @@ -134,7 +134,7 @@ jgit pom.xml .gitignore .launchers/** warning - yyyyMMddHHmm${unofficialSuffix} + yyyyMMddHHmm'${releaseQualifier}'