Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 29 additions & 5 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# $schema: https://raw.githubusercontent.com/semaphoreio/semaphore/98bb4752c79049d36324e8c76451cd704c7924f3/plumber/spec/priv/v1.0.yml
# yaml-language-server: $schema=https://raw.githubusercontent.com/semaphoreio/semaphore/98bb4752c79049d36324e8c76451cd704c7924f3/plumber/spec/priv/v1.0.yml
# This file is managed by ServiceBot plugin - Semaphore. The content in this file is created using a common
# template and configurations in service.yml.
# Any modifications made to ths file will be overwritten by the generated content in nightly runs.
Expand Down Expand Up @@ -32,13 +34,13 @@ blocks:
dependencies: []
run:
# don't run the tests on non-functional changes...
when: "change_in('/', {exclude: ['/.deployed-versions/', '.github/'], default_branch: 'master'})"
when: "change_in('/', {exclude: ['/.deployed-versions/', '/.github/', '/service.yml', '/README.md'], default_branch: 'master'})"
task:
jobs:
- name: Test
commands:
- . sem-pint -c
- ./gradlew test
- ci-sem-pint -c
- 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:
Expand All @@ -48,11 +50,34 @@ 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
# Claude Code based code review in PRs.
- name: R2 Code Review
dependencies: []
run:
when: "pull_request =~ '.+' and change_in('/', {exclude: ['/.deployed-versions/']})"
task:
jobs:
- name: R2 Code Review
commands:
# || true: code review failures are unrelated to the codebase and should not block CI. Please report issues to Slack channel #r2.
- r2 code-review --verbose --timeout=900s || true

after_pipeline:
task:
agent:
machine:
type: s1-prod-ubuntu24-04-arm64-0
type: s1-prod-ubuntu24-04-arm64-00
jobs:
- name: Metrics
commands:
Expand All @@ -63,6 +88,5 @@ after_pipeline:
- name: SonarQube
commands:
- checkout
- sem-version java 11
- artifact pull workflow target
- emit-sonarqube-data --run_only_sonar_scan
2 changes: 1 addition & 1 deletion service.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: mongo-kafka
lang: java
lang_version: 8
lang_version: "8"
git:
enable: true
codeowners:
Expand Down