Skip to content

Commit 2d5c83f

Browse files
Merge branch '7.8.x' into master
2 parents 708ed35 + 4710dd0 commit 2d5c83f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.semaphore/semaphore.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
9089
after_pipeline:

0 commit comments

Comments
 (0)