|
| 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 version, name, agent, and global_job_config will be overwritten by the generated |
| 4 | +# content in nightly runs. Code changes made to the remaining sections will not be affected. |
| 5 | +# For more information, please refer to the page: |
| 6 | +# https://confluentinc.atlassian.net/wiki/spaces/Foundations/pages/2871296194/Add+SemaphoreCI |
1 | 7 | version: v1.0 |
2 | | -name: 'confluent-kafka-go build pipeline' |
| 8 | +name: build-test-release |
3 | 9 | agent: |
4 | 10 | machine: |
5 | 11 | type: s1-prod-ubuntu20-04-amd64-1 |
| 12 | + |
| 13 | +auto_cancel: |
| 14 | + running: |
| 15 | + when: "branch != 'master'" |
| 16 | + |
| 17 | +execution_time_limit: |
| 18 | + hours: 1 |
| 19 | + |
| 20 | +queue: |
| 21 | + - when: "branch != 'master'" |
| 22 | + processing: parallel |
| 23 | + |
6 | 24 | global_job_config: |
7 | | - env_vars: |
8 | | - - name: LIBRDKAFKA_VERSION |
9 | | - value: v2.8.0 |
10 | 25 | prologue: |
11 | 26 | commands: |
| 27 | + - sem-version go 1.21 |
| 28 | + - export "GOPATH=$(go env GOPATH)" |
| 29 | + - export "SEMAPHORE_GIT_DIR=${GOPATH}/src/github.com/confluentinc/${SEMAPHORE_PROJECT_NAME}" |
| 30 | + - export "PATH=${GOPATH}/bin:${PATH}" |
| 31 | + - mkdir -vp "${SEMAPHORE_GIT_DIR}" "${GOPATH}/bin" |
12 | 32 | - checkout |
| 33 | + - make show-args |
| 34 | + - . vault-setup |
| 35 | + - . vault-sem-get-secret ci-reporting |
| 36 | + - . vault-sem-get-secret v1/ci/kv/service-foundations/cc-mk-include |
| 37 | + - make init-ci |
| 38 | + epilogue: |
| 39 | + always: |
| 40 | + commands: |
| 41 | + - make epilogue-ci |
| 42 | + |
13 | 43 | blocks: |
14 | 44 | - name: "go 1.21 OSX bundled librdkafka" |
15 | | - dependencies: [ ] |
| 45 | + dependencies: [] |
16 | 46 | task: |
17 | 47 | agent: |
18 | 48 | machine: |
@@ -40,7 +70,7 @@ blocks: |
40 | 70 | value: dynamic |
41 | 71 | commands_file: semaphore_commands.sh |
42 | 72 | - name: "go 1.21 linux bundled librdkafka" |
43 | | - dependencies: [ ] |
| 73 | + dependencies: [] |
44 | 74 | task: |
45 | 75 | agent: |
46 | 76 | machine: |
@@ -86,7 +116,7 @@ blocks: |
86 | 116 | value: consumer |
87 | 117 | commands_file: semaphore_integration_commands.sh |
88 | 118 | - name: "go 1.21 linux arm64 bundled librdkafka" |
89 | | - dependencies: [ ] |
| 119 | + dependencies: [] |
90 | 120 | task: |
91 | 121 | agent: |
92 | 122 | machine: |
@@ -118,7 +148,7 @@ blocks: |
118 | 148 | value: dynamic |
119 | 149 | commands_file: semaphore_commands.sh |
120 | 150 | - name: "go 1.21 Windows bundled librdkafka" |
121 | | - dependencies: [ ] |
| 151 | + dependencies: [] |
122 | 152 | task: |
123 | 153 | agent: |
124 | 154 | machine: |
|
0 commit comments