Skip to content

Commit 5d5138a

Browse files
Merge branch '11.0.x' into 11.1.x
2 parents 00754a7 + 2a970f2 commit 5d5138a

File tree

4 files changed

+147
-1
lines changed

4 files changed

+147
-1
lines changed

.semaphore/project.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
# Modifications in this file will be overwritten by generated content in the nightly run.
4+
# For more information, please refer to the page:
5+
# https://confluentinc.atlassian.net/wiki/spaces/Foundations/pages/2871296194/Add+SemaphoreCI
6+
apiVersion: v1alpha
7+
kind: Project
8+
metadata:
9+
name: kafka-connect-elasticsearch
10+
description: ""
11+
spec:
12+
visibility: private
13+
repository:
14+
url: [email protected]:confluentinc/kafka-connect-elasticsearch.git
15+
run_on:
16+
- branches
17+
- pull_requests
18+
pipeline_file: .semaphore/semaphore.yml
19+
integration_type: github_app
20+
status:
21+
pipeline_files:
22+
- path: .semaphore/semaphore.yml
23+
level: pipeline
24+
whitelist:
25+
branches:
26+
- master
27+
- main
28+
- /^\d+\.\d+\.x$/
29+
- /^gh-readonly-queue.*/
30+
custom_permissions: true
31+
debug_permissions:
32+
- empty
33+
- default_branch
34+
- non_default_branch
35+
- pull_request
36+
- forked_pull_request
37+
- tag
38+
attach_permissions:
39+
- default_branch
40+
- non_default_branch
41+
- pull_request
42+
- forked_pull_request
43+
- tag

.semaphore/semaphore.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
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

Jenkinsfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#!/usr/bin/env groovy
22
common {
33
slackChannel = '#connect-warn'
4-
upstreamProjects = 'confluentinc/common'
54
pintMerge = true
65
downStreamValidate = false
76
nodeLabel = 'docker-debian-jdk8'

service.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
name: kafka-connect-elasticsearch
2+
lang: java
3+
lang_version: 8
4+
git:
5+
enable: true
6+
codeowners:
7+
enable: true
8+
semaphore:
9+
enable: true
10+
pipeline_type: cp
11+
cve_scan: true
12+
extra_deploy_args: "-Dcloud -Pjenkins"
13+
extra_build_args: "-Dcloud -Pjenkins"
14+
run_pint_merge: true
15+
generate_connect_changelogs: true

0 commit comments

Comments
 (0)