diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index 1b6ae010..2b484723 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: