diff --git a/.semaphore/project.yml b/.semaphore/project.yml deleted file mode 100644 index 27453a3..0000000 --- a/.semaphore/project.yml +++ /dev/null @@ -1,44 +0,0 @@ -# This file is managed by ServiceBot plugin - Semaphore. The content in this file is created using a common -# template and configurations in service.yml. -# Modifications in this file will be overwritten by generated content in the nightly run. -# For more information, please refer to the page: -# https://confluentinc.atlassian.net/wiki/spaces/Foundations/pages/2871296194/Add+SemaphoreCI -apiVersion: v1alpha -kind: Project -metadata: - name: csid-python-base - description: "" -spec: - visibility: private - repository: - url: git@github.com:confluentinc/csid-python-base.git - run_on: - - branches - - tags - - pull_requests - pipeline_file: .semaphore/semaphore.yml - integration_type: github_app - status: - pipeline_files: - - path: .semaphore/semaphore.yml - level: pipeline - whitelist: - branches: - - master - - main - - /^v\d+\.\d+\.x$/ - - /^gh-readonly-queue.*/ - custom_permissions: true - debug_permissions: - - empty - - default_branch - - non_default_branch - - pull_request - - forked_pull_request - - tag - attach_permissions: - - default_branch - - non_default_branch - - pull_request - - forked_pull_request - - tag diff --git a/.semaphore/publish_to_codeartifact.yml b/.semaphore/publish_to_codeartifact.yml index c754cf4..4afa1ae 100644 --- a/.semaphore/publish_to_codeartifact.yml +++ b/.semaphore/publish_to_codeartifact.yml @@ -6,7 +6,7 @@ version : v1.0 name : Publish to Code Artifact agent : machine : - type : s1-prod-ubuntu20-04-amd64-1 + type : s1-prod-ubuntu24-04-amd64-1 global_job_config : env_vars : diff --git a/.semaphore/publish_to_s3.yml b/.semaphore/publish_to_s3.yml index 8a0de23..a562729 100644 --- a/.semaphore/publish_to_s3.yml +++ b/.semaphore/publish_to_s3.yml @@ -6,7 +6,7 @@ version : v1.0 name : Publish to S3 agent : machine : - type : s1-prod-ubuntu20-04-amd64-1 + type : s1-prod-ubuntu24-04-amd64-1 global_job_config : env_vars : diff --git a/.semaphore/semaphore.yml b/.semaphore/semaphore.yml index b2ea56c..26e6ce9 100644 --- a/.semaphore/semaphore.yml +++ b/.semaphore/semaphore.yml @@ -1,18 +1,39 @@ -# -# Copyright (C) 2021-2023 Confluent, Inc. -# - +# 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 version, name, agent and global_job_config will be overwritten by the generated +# content in nightly runs. Code changes made to the remaining sections will not be affected. +# For more information, please refer to the page: +# https://confluentinc.atlassian.net/wiki/spaces/Foundations/pages/2871296194/Add+SemaphoreCI version: v1.0 -name: Python integration java lib +name: build-test-release agent: machine: - type: s1-prod-ubuntu20-04-amd64-1 + type: s1-prod-ubuntu24-04-amd64-1 -execution_time_limit: - hours: 2 auto_cancel: running: when: "branch != 'main'" +execution_time_limit: + hours: 2 +queue: + - when: "branch != 'master'" + processing: parallel + +global_job_config: + prologue: + commands: + - sem-version java 11 + - checkout + - make show-args + - . vault-setup + - . vault-sem-get-secret ci-reporting + - . vault-sem-get-secret v1/ci/kv/service-foundations/cc-mk-include + - make init-ci + epilogue: + always: + commands: + - make epilogue-ci + blocks: - name: Build dependencies: [] @@ -64,17 +85,4 @@ promotions: - name: Publish to CodeArtifact pipeline_file: publish_to_codeartifact.yml - -queue: - - when: "branch != 'master'" - processing: parallel - -global_job_config: - prologue: - commands: - - sem-version java 11 - - checkout - - . vault-setup - - . vault-sem-get-secret ci-reporting - - . vault-sem-get-secret v1/ci/kv/service-foundations/cc-mk-include diff --git a/sonar-project.properties b/sonar-project.properties index 0eada52..565ca83 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,6 +1,7 @@ ### service-bot sonarqube plugin managed file sonar.coverage.exclusions=**/test/**/*,**/tests/**/*,**/mock/**/*,**/mocks/**/*,**/*mock*,**/*test* sonar.coverage.jacoco.xmlReportPaths=**/jacoco.xml +sonar.cpd.exclusions=**/test/**/*,**/tests/**/*,**/mock/**/*,**/mocks/**/*,**/*mock*,**/*test* sonar.exclusions=**/*.pb.*,**/mk-include/**/* sonar.java.binaries=. sonar.language=java