File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -73,18 +73,17 @@ blocks:
7373 jobs :
7474 - name : Trigger and wait for CP Jar Build Task
7575 commands :
76- # Don't run this block if target branch for PR is not a nightly branch or master branch
77- # cp-jar-build today doesn't support other branches
76+ # Don't run this block if target branch for PR is not a CP nightly branch
7877 - |
79- if [[ "$SEMAPHORE_GIT_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]] || [[ "$SEMAPHORE_GIT_BRANCH" == "master" ]] ; then \
80- echo "PR is targeted to ${SEMAPHORE_GIT_BRANCH} branch which is CP nightly or master branch. Triggering cp-jar-build task."; \
78+ if [[ "$SEMAPHORE_GIT_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]] ; then \
79+ echo "PR is targeted to ${SEMAPHORE_GIT_BRANCH} branch which is CP nightly branch. Triggering cp-jar-build task."; \
8180 sem-trigger -p packaging \
8281 -t cp-jar-build \
8382 -b $SEMAPHORE_GIT_BRANCH \
8483 -d "|" -i "CUSTOM_BRANCH_COMPONENTS|${COMPONENT_NAME}=${SEMAPHORE_GIT_WORKING_BRANCH}" \
8584 -w; \
8685 else \
87- echo "PR is targeted to ${SEMAPHORE_GIT_BRANCH} branch which is not CP nightly or master branch. Skipping cp-jar-build task."; \
86+ echo "PR is targeted to ${SEMAPHORE_GIT_BRANCH} branch which is not CP nightly branch. Skipping cp-jar-build task."; \
8887 fi;
8988
9089after_pipeline :
You can’t perform that action at this time.
0 commit comments