From 4d126460af85d548a27ef83e68784da06889c285 Mon Sep 17 00:00:00 2001 From: Dimitrios Liappis Date: Fri, 26 Apr 2024 19:21:35 +0300 Subject: [PATCH] Enable DRA for main via Buildkite (#39234) This commit disables automated DRA builds for the main branch via Jenkins, and enables the same functionality via Buildkite. Relates: https://github.com/elastic/ingest-dev/issues/3095 --------- Co-authored-by: Victor Martinez --- .buildkite/scripts/dra.sh | 18 ++++-------------- .ci/jobs/packaging.yml | 5 +---- .pre-commit-config.yaml | 1 - catalog-info.yaml | 10 ++++++++-- 4 files changed, 13 insertions(+), 21 deletions(-) diff --git a/.buildkite/scripts/dra.sh b/.buildkite/scripts/dra.sh index b20d6c6a696b..ec9d523bf3ce 100755 --- a/.buildkite/scripts/dra.sh +++ b/.buildkite/scripts/dra.sh @@ -1,21 +1,11 @@ #!/usr/bin/env bash -# TODO: uncomment out below when Jenkins packaging has been stopped -# if [[ "$DRY_RUN" == "true" ]]; then -# echo "~~~ Running in dry-run mode -- will NOT publish artifacts" -# DRY_RUN="--dry-run" -# else -# echo "~~~ Running in publish mode" -# DRY_RUN="" -# fi - -# TODO: delete the conditional below (and replace it with the above, uncommented out, section) after Jenkins packaging has been stopped -if [[ "$DRY_RUN" == "false" ]]; then - echo "~~~ Running in publish mode" - DRY_RUN="" -else +if [[ "$DRY_RUN" == "true" ]]; then echo "~~~ Running in dry-run mode -- will NOT publish artifacts" DRY_RUN="--dry-run" +else + echo "~~~ Running in publish mode" + DRY_RUN="" fi set -euo pipefail diff --git a/.ci/jobs/packaging.yml b/.ci/jobs/packaging.yml index a9d3f4bf00c8..6d4b136a5573 100644 --- a/.ci/jobs/packaging.yml +++ b/.ci/jobs/packaging.yml @@ -14,7 +14,7 @@ discover-pr-forks-trust: 'permission' discover-pr-origin: 'merge-current' discover-tags: true - head-filter-regex: '(main|7\.1[6789]|8\.\d+|PR-.*|v\d+\.\d+\.\d+)' + head-filter-regex: '(7\.1[6789]|8\.\d+|PR-.*|v\d+\.\d+\.\d+)' disable-pr-notifications: true notification-context: 'beats-packaging' repo: 'beats' @@ -28,9 +28,6 @@ ignore-tags-older-than: -1 ignore-tags-newer-than: 30 - named-branches: - - exact-name: - name: 'main' - case-sensitive: true - regex-name: regex: '7\.1[6789]' case-sensitive: true diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 200d0b9277a8..2c9643e3f95b 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,4 +9,3 @@ repos: hooks: - id: check-jenkins-pipelines files: ^(.ci/(.*\.groovy|Jenkinsfile)|Jenkinsfile)$ - - id: check-jjbb diff --git a/catalog-info.yaml b/catalog-info.yaml index ea7d48d9a9f8..116e50246634 100644 --- a/catalog-info.yaml +++ b/catalog-info.yaml @@ -1040,11 +1040,17 @@ spec: spec: repository: elastic/beats pipeline_file: ".buildkite/packaging.pipeline.yml" - branch_configuration: "main 8.* 7.17" + branch_configuration: "main" + # TODO enable after packaging backports for release branches + # branch_configuration: "main 8.* 7.17" cancel_intermediate_builds: false skip_intermediate_builds: false provider_settings: - trigger_mode: none + trigger_mode: code + env: + ELASTIC_SLACK_NOTIFICATIONS_ENABLED: 'true' + SLACK_NOTIFICATIONS_CHANNEL: '#ingest-notifications' + SLACK_NOTIFICATIONS_ON_SUCCESS: 'false' teams: ingest-fp: access_level: MANAGE_BUILD_AND_READ