From 1e9ca0c748e401e1bb36989cd936ac8b9f574a54 Mon Sep 17 00:00:00 2001 From: Andrew Leonard Date: Tue, 26 Aug 2025 11:13:52 +0100 Subject: [PATCH] Support solaris simplepipe for triggerReleasePipeline.sh Signed-off-by: Andrew Leonard --- triggerReleasePipeline.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/triggerReleasePipeline.sh b/triggerReleasePipeline.sh index 643c419..db796d7 100755 --- a/triggerReleasePipeline.sh +++ b/triggerReleasePipeline.sh @@ -27,6 +27,7 @@ set -euo pipefail JDKVERSION="$1" ADOPTIUM_REPO=${2:-"https://github.com/adoptium/$JDKVERSION.git"} BRANCH=${3:-"master"} +SOLARIS=${4:-"normal"} # Since we have "jdk8u" in the code, we need to create another lever of "workspace" SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" @@ -87,7 +88,11 @@ do echo "Found tag: ${scmReference}" # write into properties file for release pipeline to get input from # existence of this file will be used in jenkins job as if should continue trigger logic - echo scmReference=$scmReference > ${SCRIPT_DIR}/properties + if [[ "${SOLARIS}" == "solaris" ]]; then + echo SCM_REF=$scmReference > ${SCRIPT_DIR}/properties + else + echo scmReference=$scmReference > ${SCRIPT_DIR}/properties + fi # also write into a tracking file which can avoid mulitple triggering to release pipeline echo previousSCM=$scmReference > ${WORKSPACE}/tracking break # should continue trigger logic