Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion triggerReleasePipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ set -euo pipefail
JDKVERSION="$1"
ADOPTIUM_REPO=${2:-"https://github.com/adoptium/$JDKVERSION.git"}
BRANCH=${3:-"master"}
SOLARIS=${4:-"normal"}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly want to update line 25 which mentions the parameters to include this one.


# Since we have "jdk8u" in the code, we need to create another lever of "workspace"
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
Expand Down Expand Up @@ -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
Expand Down