From ac361663c0808c68030e1b385f113ef84db0f265 Mon Sep 17 00:00:00 2001 From: "service-bot-app[bot]" <189278048+service-bot-app[bot]@users.noreply.github.com> Date: Thu, 26 Dec 2024 02:18:27 +0000 Subject: [PATCH] chore: update repo semaphore config --- .semaphore/semaphore.yml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 1b6ae0100..2b4847230 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -25,6 +25,7 @@ global_job_config: commands: - checkout - sem-version java 8 + - . cache-maven restore blocks: - name: Test @@ -37,8 +38,9 @@ blocks: - name: Test commands: - . sem-pint -c - - ./gradlew test - - . cve-scan + - mvn -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode --no-transfer-progress clean verify install dependency:analyze validate + - cve-scan + - . cache-maven store epilogue: always: commands: @@ -46,6 +48,17 @@ blocks: - artifact push workflow target/test-results - artifact push workflow target + - name: Release + dependencies: ["Test"] + run: + when: "branch = 'master' or branch =~ '[0-9]+\\.[0-9]+\\.x'" + task: + jobs: + - name: Release + commands: + - 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 + after_pipeline: task: agent: