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
+
51
+ - name : Release
52
+ dependencies : ["Test"]
53
+ run :
54
+ when : " branch = 'master' or branch =~ '[0-9]+\\ .[0-9]+\\ .x'"
55
+ task :
56
+ jobs :
57
+ - name : Release
58
+ commands :
59
+ - 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/
60
+ -DrepositoryId=confluent-codeartifact-internal deploy -DskipTests
61
+ - name : Release Notes
62
+ dependencies : [ ]
63
+ run :
64
+ when : " branch =~ '[0-9]+\\ .[0-9]+\\ .x'"
65
+ task :
66
+ jobs :
67
+ - name : Generate Release Notes
68
+ commands :
69
+ -
git clone --branch master --single-branch [email protected] :confluentinc/connect-releases.git
70
+ - ./connect-releases/tasks/release-connect-plugins/generate-connect-changelogs.sh
71
+
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
+ - emit-sonarqube-data -a test-results
0 commit comments