From 95f6665d65968078918d1862a3c3ea0e0a34c5cc Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Wed, 26 Apr 2023 17:26:06 +0200 Subject: [PATCH 1/3] Add new pipeline for main and tags --- catalog-info.yaml | 46 +++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 45 insertions(+), 1 deletion(-) diff --git a/catalog-info.yaml b/catalog-info.yaml index b0cfde99d6..a351e28899 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -21,7 +21,7 @@ apiVersion: backstage.io/v1alpha1 kind: Resource metadata: name: buildkite-pipeline-elastic-package - description: ':go: Build and test the elastic-package project' + description: ':go: Build and test the elastic-package project for Pull Requests' links: - title: Pipeline url: https://buildkite.com/elastic/elastic-package @@ -36,6 +36,49 @@ spec: metadata: name: elastic-package description: ':go: Build and test the elastic-package project' + spec: + branch_configuration: "main v0.* v1.*" + pipeline_file: ".buildkite/pipeline.yml" + provider_settings: + build_pull_request_forks: false + build_pull_requests: false # PR builds are managed by buildkite-pr-bot + build_tags: false + trigger_mode: none + repository: elastic/elastic-package + cancel_intermediate_builds: true + cancel_intermediate_builds_branch_filter: '!main' + skip_intermediate_builds: true + skip_intermediate_builds_branch_filter: '!main' + env: + ELASTIC_PR_COMMENTS_ENABLED: 'true' + teams: + ecosystem: + access_level: MANAGE_BUILD_AND_READ + ingest-fp: + access_level: MANAGE_BUILD_AND_READ + everyone: + access_level: READ_ONLY +--- +# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: buildkite-pipeline-elastic-package-main + description: ':go: Build and test the elastic-package project' + links: + - title: Pipeline + url: https://buildkite.com/elastic/elastic-package + +spec: + type: buildkite-pipeline + owner: group:ingest-fp + system: buildkite + implementation: + apiVersion: buildkite.elastic.dev/v1 + kind: Pipeline + metadata: + name: elastic-package-main + description: ':go: Build and test the elastic-package project' spec: branch_configuration: "main v0.* v1.*" pipeline_file: ".buildkite/pipeline.yml" @@ -43,6 +86,7 @@ spec: build_pull_request_forks: false build_pull_requests: false # PR builds are managed by buildkite-pr-bot build_tags: true + trigger_mode: code repository: elastic/elastic-package cancel_intermediate_builds: true cancel_intermediate_builds_branch_filter: '!main' From f8caad3bae4975f97867e489546e9a27101d8d3e Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Wed, 26 Apr 2023 17:27:30 +0200 Subject: [PATCH 2/3] Add new pipeline for main and tags for test publish package --- catalog-info.yaml | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/catalog-info.yaml b/catalog-info.yaml index a351e28899..c4f3dd7414 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -129,7 +129,50 @@ spec: provider_settings: build_pull_request_forks: false build_pull_requests: false # PR builds are managed by buildkite-pr-bot - build_tags: true + build_tags: false + trigger_mode: none + repository: elastic/elastic-package + cancel_intermediate_builds: true + cancel_intermediate_builds_branch_filter: '!main' + skip_intermediate_builds: true + skip_intermediate_builds_branch_filter: '!main' + teams: + ecosystem: + access_level: MANAGE_BUILD_AND_READ + ingest-fp: + access_level: MANAGE_BUILD_AND_READ + everyone: + access_level: READ_ONLY + +--- +# yaml-language-server: $schema=https://gist.githubusercontent.com/elasticmachine/988b80dae436cafea07d9a4a460a011d/raw/e57ee3bed7a6f73077a3f55a38e76e40ec87a7cf/rre.schema.json +apiVersion: backstage.io/v1alpha1 +kind: Resource +metadata: + name: buildkite-pipeline-elastic-package-package-storage-publish-main + description: 'Minimal Jenkins pipeline to exercise publishing a package to Package Storage (for testing only)' + links: + - title: Pipeline + url: https://buildkite.com/elastic/elastic-package-package-storage-publish + +spec: + type: buildkite-pipeline + owner: group:ingest-fp + system: buildkite + implementation: + apiVersion: buildkite.elastic.dev/v1 + kind: Pipeline + metadata: + name: elastic-package-package-storage-publish-main + description: 'Minimal Jenkins pipeline to exercise publishing a package to Package Storage (for testing only)' + spec: + branch_configuration: main + pipeline_file: ".buildkite/pipeline.package-storage-publish.yml" + provider_settings: + build_pull_request_forks: false + build_pull_requests: false # PR builds are managed by buildkite-pr-bot + build_tags: false + trigger_mode: code repository: elastic/elastic-package cancel_intermediate_builds: true cancel_intermediate_builds_branch_filter: '!main' From 09a33a18b2b634aaf7240477f84566f6d6a4485f Mon Sep 17 00:00:00 2001 From: Mario Rodriguez Molins Date: Wed, 26 Apr 2023 17:28:59 +0200 Subject: [PATCH 3/3] Add note about for pull requests --- catalog-info.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/catalog-info.yaml b/catalog-info.yaml index c4f3dd7414..580629082f 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -35,7 +35,7 @@ spec: kind: Pipeline metadata: name: elastic-package - description: ':go: Build and test the elastic-package project' + description: ':go: Build and test the elastic-package project for Pull Requests' spec: branch_configuration: "main v0.* v1.*" pipeline_file: ".buildkite/pipeline.yml" @@ -150,7 +150,7 @@ apiVersion: backstage.io/v1alpha1 kind: Resource metadata: name: buildkite-pipeline-elastic-package-package-storage-publish-main - description: 'Minimal Jenkins pipeline to exercise publishing a package to Package Storage (for testing only)' + description: 'Minimal Jenkins pipeline to exercise publishing a package to Package Storage (for testing only) for Pull Requests' links: - title: Pipeline url: https://buildkite.com/elastic/elastic-package-package-storage-publish @@ -164,7 +164,7 @@ spec: kind: Pipeline metadata: name: elastic-package-package-storage-publish-main - description: 'Minimal Jenkins pipeline to exercise publishing a package to Package Storage (for testing only)' + description: 'Minimal Jenkins pipeline to exercise publishing a package to Package Storage (for testing only) for Pull Requests' spec: branch_configuration: main pipeline_file: ".buildkite/pipeline.package-storage-publish.yml"