From 8c7f4c78fcd9832aec56b03c5d8d657220ee87a9 Mon Sep 17 00:00:00 2001 From: Charles Provencher Date: Mon, 12 Feb 2024 15:47:26 -0500 Subject: [PATCH 1/4] Add service.yml --- service.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 service.yml diff --git a/service.yml b/service.yml new file mode 100644 index 000000000..1ad859983 --- /dev/null +++ b/service.yml @@ -0,0 +1,15 @@ +name: kafka-connect-hdfs +lang: java +lang_version: 8 +git: + enable: true +codeowners: + enable: true +semaphore: + enable: true + pipeline_type: cp + extra_deploy_args: -Dcloud -Pjenkins + extra_build_args: -Dcloud -Pjenkins + generate_connect_changelogs: true + run_maven_cve_scan: true + run_pint_merge: true From f0f83eb570889a4729476c8f7d6b57c20786fe69 Mon Sep 17 00:00:00 2001 From: Charles Provencher Date: Mon, 12 Feb 2024 15:47:36 -0500 Subject: [PATCH 2/4] Delete Jenkinsfile --- Jenkinsfile | 6 ------ 1 file changed, 6 deletions(-) delete mode 100755 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100755 index da9d225d0..000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,6 +0,0 @@ -#!/usr/bin/env groovy -common { - slackChannel = '#connect-warn' - upstreamProjects = ['confluentinc/schema-registry','confluentinc/common'] - nodeLabel = 'docker-debian-jdk8' -} From 124938d9ba4b91b87f9439379586bac2ed9d077c Mon Sep 17 00:00:00 2001 From: cprovencher Date: Mon, 12 Feb 2024 15:48:02 -0500 Subject: [PATCH 3/4] chore: update repo semaphore config --- .semaphore/semaphore.yml | 90 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 90 insertions(+) create mode 100644 .semaphore/semaphore.yml diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml new file mode 100644 index 000000000..c67ceb36d --- /dev/null +++ b/.semaphore/semaphore.yml @@ -0,0 +1,90 @@ +# This file is managed by ServiceBot plugin - Semaphore. The content in this file is created using a common +# template and configurations in service.yml. +# Any modifications made to ths file will be overwritten by the generated content in nightly runs. +# For more information, please refer to the page: +# https://confluentinc.atlassian.net/wiki/spaces/Foundations/pages/2871296194/Add+SemaphoreCI +version: v1.0 +name: build-test-release +agent: + machine: + type: s1-prod-ubuntu20-04-amd64-1 + +fail_fast: + cancel: + when: "true" + +execution_time_limit: + hours: 1 + +queue: + - when: "branch != 'master' and branch !~ '[0-9]+\\.[0-9]+\\.x'" + processing: parallel + +global_job_config: + prologue: + commands: + - checkout + - sem-version java 8 + - . cache-maven restore + +blocks: + - name: Test + dependencies: [] + run: + # don't run the tests on non-functional changes... + when: "change_in('/', {exclude: ['/.deployed-versions/', '.github/']})" + task: + jobs: + - name: Test + commands: + - pip install confluent-release-tools -q + - . sem-pint + - mvn -Dcloud -Pjenkins -U -Dmaven.wagon.http.retryHandler.count=10 --batch-mode --no-transfer-progress clean verify install dependency:analyze validate + - cve-scan + - . cache-maven store + 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'" + task: + jobs: + - name: Release + commands: + - 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/ + -DrepositoryId=confluent-codeartifact-internal deploy -DskipTests + - name: Release Notes + dependencies: [] + run: + when: "branch =~ '[0-9]+\\.[0-9]+\\.x'" + task: + jobs: + - name: Generate Release Notes + commands: + - git clone --branch master --single-branch git@github.com:confluentinc/connect-releases.git + - ./connect-releases/tasks/release-connect-plugins/generate-connect-changelogs.sh + +after_pipeline: + task: + agent: + machine: + type: s1-prod-ubuntu20-04-arm64-0 + jobs: + - name: Metrics + commands: + - emit-ci-metrics -p -a test-results + - name: Publish Test Results + commands: + - test-results gen-pipeline-report + - name: SonarQube + commands: + - checkout + - sem-version java 11 + - artifact pull workflow target + - emit-sonarqube-data --run_only_sonar_scan From 71cddad192882a0002e36a7283d6e17d9adaf4a6 Mon Sep 17 00:00:00 2001 From: cprovencher Date: Mon, 12 Feb 2024 15:48:03 -0500 Subject: [PATCH 4/4] chore: update sonar-project.properties to reconfigure sonarqube scanning. --- sonar-project.properties | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 sonar-project.properties diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 000000000..01a065cd5 --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,8 @@ +### service-bot sonarqube plugin managed file +sonar.coverage.exclusions=**/test/**/*,**/tests/**/*,**/mock/**/*,**/mocks/**/*,**/*mock*,**/*test* +sonar.coverage.jacoco.xmlReportPaths=**/jacoco.xml +sonar.exclusions=**/*.pb.*,**/mk-include/**/* +sonar.java.binaries=. +sonar.language=java +sonar.projectKey=kafka-connect-hdfs +sonar.sources=.