|
| 1 | +# This file is managed by ServiceBot plugin - Semaphore. The content in this file is created using a common |
| 2 | +# template and configurations in service.yml. |
| 3 | +# Any modifications made to ths file will be overwritten by the generated content in nightly runs. |
| 4 | +# For more information, please refer to the page: |
| 5 | +# https://confluentinc.atlassian.net/wiki/spaces/Foundations/pages/2871296194/Add+SemaphoreCI |
| 6 | +version: v1.0 |
| 7 | +name: build-test-release |
| 8 | +agent: |
| 9 | + machine: |
| 10 | + type: s1-prod-ubuntu20-04-amd64-1 |
| 11 | + |
| 12 | +fail_fast: |
| 13 | + cancel: |
| 14 | + when: "true" |
| 15 | + |
| 16 | +execution_time_limit: |
| 17 | + hours: 1 |
| 18 | + |
| 19 | +queue: |
| 20 | + - when: "branch != 'master' and branch !~ '[0-9]+\\.[0-9]+\\.x'" |
| 21 | + processing: parallel |
| 22 | + |
| 23 | +global_job_config: |
| 24 | + prologue: |
| 25 | + commands: |
| 26 | + - checkout |
| 27 | + - sem-version java 8 |
| 28 | + - . cache-maven restore |
| 29 | + |
| 30 | +blocks: |
| 31 | + - name: Test |
| 32 | + dependencies: [] |
| 33 | + run: |
| 34 | + # don't run the tests on non-functional changes... |
| 35 | + when: "change_in('/', {exclude: ['/.deployed-versions/', '.github/']})" |
| 36 | + task: |
| 37 | + jobs: |
| 38 | + - name: Test |
| 39 | + commands: |
| 40 | + - pip install confluent-release-tools -q |
| 41 | + - . sem-pint |
| 42 | + - mvn -Dcloud -Pjenkins -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode --no-transfer-progress clean verify install dependency:analyze validate |
| 43 | + - cve-scan |
| 44 | + - . cache-maven store |
| 45 | + epilogue: |
| 46 | + always: |
| 47 | + commands: |
| 48 | + - . publish-test-results |
| 49 | + - artifact push workflow target/test-results |
| 50 | + - artifact push workflow target |
| 51 | + |
| 52 | + - name: Release |
| 53 | + dependencies: ["Test"] |
| 54 | + run: |
| 55 | + when: "branch = 'master' or branch =~ '[0-9]+\\.[0-9]+\\.x'" |
| 56 | + task: |
| 57 | + jobs: |
| 58 | + - name: Release |
| 59 | + commands: |
| 60 | + - mvn -Dcloud -Pjenkins -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/ |
| 61 | + -DrepositoryId=confluent-codeartifact-internal deploy -DskipTests |
| 62 | + - name: Release Notes |
| 63 | + dependencies: [] |
| 64 | + run: |
| 65 | + when: "branch =~ '[0-9]+\\.[0-9]+\\.x'" |
| 66 | + task: |
| 67 | + jobs: |
| 68 | + - name: Generate Release Notes |
| 69 | + commands: |
| 70 | + - git clone --branch master --single-branch [email protected]:confluentinc/connect-releases.git |
| 71 | + - ./connect-releases/tasks/release-connect-plugins/generate-connect-changelogs.sh |
| 72 | + |
| 73 | +after_pipeline: |
| 74 | + task: |
| 75 | + agent: |
| 76 | + machine: |
| 77 | + type: s1-prod-ubuntu20-04-arm64-0 |
| 78 | + jobs: |
| 79 | + - name: Metrics |
| 80 | + commands: |
| 81 | + - emit-ci-metrics -p -a test-results |
| 82 | + - name: Publish Test Results |
| 83 | + commands: |
| 84 | + - test-results gen-pipeline-report |
| 85 | + - name: SonarQube |
| 86 | + commands: |
| 87 | + - checkout |
| 88 | + - sem-version java 11 |
| 89 | + - artifact pull workflow target |
| 90 | + - emit-sonarqube-data --run_only_sonar_scan |
0 commit comments