Skip to content

Commit

Permalink
chore: update repo semaphore config
Browse files Browse the repository at this point in the history
  • Loading branch information
ConfluentSemaphore committed Oct 16, 2024
1 parent 2493968 commit dd8bf18
Showing 1 changed file with 8 additions and 11 deletions.
19 changes: 8 additions & 11 deletions .semaphore/semaphore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ fail_fast:
when: "true"

execution_time_limit:
hours: 4
hours: 1

queue:
- when: "branch != 'master' and branch !~ '[0-9]+\\.[0-9]+\\.x' and branch !~ 'v\\d+\\.\\d+\\.\\d+\\-hotfix\\-x'"
- when: "branch != 'master' and branch !~ '[0-9]+\\.[0-9]+\\.x'"
processing: parallel

global_job_config:
Expand All @@ -37,33 +37,29 @@ blocks:
jobs:
- name: Test
commands:
- . sem-pint -c
- mvn -Dcloud -Passembly -pl debezium-connector-mysql,debezium-connector-postgres,debezium-connector-sqlserver -am -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode --no-transfer-progress
clean verify install dependency:analyze validate
- . cve-scan
- cve-scan
- . cache-maven store
env_vars:
- name: SEMAPHORE_AGENT_UPLOAD_JOB_LOGS
value: when-trimmed
epilogue:
always:
commands:
- . publish-test-results
- 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' or branch =~ 'v\\d+\\.\\d+\\.\\d+\\-hotfix\\-x'"
when: "branch = 'master' or branch =~ '[0-9]+\\.[0-9]+\\.x'"
task:
jobs:
- name: Release
commands:
- git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
- git fetch --unshallow || true
- mvn -Dcloud -Passembly -pl debezium-connector-mysql,debezium-connector-postgres,debezium-connector-sqlserver -am -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:
Expand All @@ -80,4 +76,5 @@ after_pipeline:
commands:
- checkout
- sem-version java 11
- emit-sonarqube-data -a test-results
- artifact pull workflow target
- emit-sonarqube-data --run_only_sonar_scan

0 comments on commit dd8bf18

Please sign in to comment.