Skip to content

Commit 3e5c35f

Browse files
Support solaris simplepipe for triggerReleasePipeline.sh (#70)
Signed-off-by: Andrew Leonard <[email protected]>
1 parent 91c95f0 commit 3e5c35f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

triggerReleasePipeline.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ set -euo pipefail
2727
JDKVERSION="$1"
2828
ADOPTIUM_REPO=${2:-"https://github.com/adoptium/$JDKVERSION.git"}
2929
BRANCH=${3:-"master"}
30+
SOLARIS=${4:-"normal"}
3031

3132
# Since we have "jdk8u" in the code, we need to create another lever of "workspace"
3233
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
@@ -87,7 +88,11 @@ do
8788
echo "Found tag: ${scmReference}"
8889
# write into properties file for release pipeline to get input from
8990
# existence of this file will be used in jenkins job as if should continue trigger logic
90-
echo scmReference=$scmReference > ${SCRIPT_DIR}/properties
91+
if [[ "${SOLARIS}" == "solaris" ]]; then
92+
echo SCM_REF=$scmReference > ${SCRIPT_DIR}/properties
93+
else
94+
echo scmReference=$scmReference > ${SCRIPT_DIR}/properties
95+
fi
9196
# also write into a tracking file which can avoid mulitple triggering to release pipeline
9297
echo previousSCM=$scmReference > ${WORKSPACE}/tracking
9398
break # should continue trigger logic

0 commit comments

Comments
 (0)