Skip to content

Commit

Permalink
CPBR-1887: adding cp-jar-build semaphoreCI block (#10602)
Browse files Browse the repository at this point in the history
  • Loading branch information
rahejaprince authored Dec 12, 2024
1 parent 1ec51d4 commit 29b78b1
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,31 @@ blocks:
- mvn -Ddocker.skip=true -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode -DaltDeploymentRepository=confluent-codeartifact-internal::default::https://confluent-519856050701.d.codeartifact.us-west-2.amazonaws.com/maven/maven-snapshots/
-DrepositoryId=confluent-codeartifact-internal deploy -DskipTests

- name: CP Jar Build CI Gating
dependencies: [ ]
run:
# Run this block only for pull requests
when: "pull_request =~ '.*'"
task:
env_vars:
- name: COMPONENT_NAME
value: ksqldb
jobs:
- name: Trigger and wait for CP Jar Build Task
commands:
# Don't run this block if target branch for PR is not a CP nightly branch
- |
if [[ "$SEMAPHORE_GIT_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]] ; then \
echo "PR is targeted to ${SEMAPHORE_GIT_BRANCH} branch which is CP nightly branch. Triggering cp-jar-build task."; \
sem-trigger -p packaging \
-t cp-jar-build \
-b $SEMAPHORE_GIT_BRANCH \
-d "|" -i "CUSTOM_BRANCH_COMPONENTS|${COMPONENT_NAME}=${SEMAPHORE_GIT_WORKING_BRANCH}" \
-w; \
else \
echo "PR is targeted to ${SEMAPHORE_GIT_BRANCH} branch which is not CP nightly branch. Skipping cp-jar-build task."; \
fi;
after_pipeline:
task:
agent:
Expand Down

0 comments on commit 29b78b1

Please sign in to comment.