From d852f0c18001c797cbc2a8c8999fcd618b0d048c Mon Sep 17 00:00:00 2001 From: "service-bot-app[bot]" Date: Thu, 19 Feb 2026 17:22:21 +0000 Subject: [PATCH] chore: update repo semaphore config --- .semaphore/semaphore.yml | 35 +++++++++++++++++------------------ 1 file changed, 17 insertions(+), 18 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 8c01cd9736..f21bef76b4 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -32,12 +32,12 @@ blocks: dependencies: [] run: # don't run the tests on non-functional changes... - when: "change_in('/', {exclude: ['/.deployed-versions/', '.github/']})" + when: "change_in('/', {exclude: ['/.deployed-versions/', '.github/', 'service.yml', 'README.md'], default_branch: 'master'})" task: jobs: - name: Test commands: - - . ci-tools ci-update-version + - ci-sem-pint -c - mvn -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode --no-transfer-progress clean verify install dependency:analyze validate - . cache-maven store epilogue: @@ -45,6 +45,7 @@ blocks: commands: - . publish-test-results - artifact push workflow target/test-results + - artifact push workflow target - name: Release dependencies: ["Test"] @@ -54,45 +55,43 @@ blocks: jobs: - name: Release commands: - - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" - - git fetch --unshallow || true - - pip install -q confluent-release-tools - - pint merge --check-all - - . ci-tools ci-update-version - - . ci-tools ci-push-tag - - mvn -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode -Pjenkins -DaltDeploymentRepository=confluent-codeartifact-internal::default::https://confluent-519856050701.d.codeartifact.us-west-2.amazonaws.com/maven/maven-snapshots/ + - mvn -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: [ ] + dependencies: [] run: # Run this block only for pull requests when: "pull_request =~ '.*'" task: + agent: + machine: + type: s1-prod-ubuntu24-04-arm64-00 env_vars: - name: COMPONENT_NAME value: rest-utils 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 + # Don't run this block if target branch for PR is not a nightly branch or master branch + # cp-jar-build today doesn't support other branches - | - 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."; \ + if [[ "$SEMAPHORE_GIT_BRANCH" =~ ^[0-9]+\.[0-9]+\.x$ ]] || [[ "$SEMAPHORE_GIT_BRANCH" == "master" ]] ; then \ + echo "PR is targeted to ${SEMAPHORE_GIT_BRANCH} branch which is CP nightly or master 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."; \ + echo "PR is targeted to ${SEMAPHORE_GIT_BRANCH} branch which is not CP nightly or master branch. Skipping cp-jar-build task."; \ fi; after_pipeline: task: agent: machine: - type: s1-prod-ubuntu24-04-arm64-0 + type: s1-prod-ubuntu24-04-arm64-00 jobs: - name: Metrics commands: @@ -103,8 +102,8 @@ after_pipeline: - name: SonarQube commands: - checkout - - sem-version java 11 - - emit-sonarqube-data -a test-results + - artifact pull workflow target + - emit-sonarqube-data --run_only_sonar_scan - name: Trigger downstream projects commands: - >-