Skip to content

Commit

Permalink
Enable DRA for main via Buildkite (elastic#39234)
Browse files Browse the repository at this point in the history
This commit disables automated DRA builds for
the main branch via Jenkins, and enables the
same functionality via Buildkite.

Relates: elastic/ingest-dev#3095

---------

Co-authored-by: Victor Martinez <[email protected]>
  • Loading branch information
dliappis and v1v authored Apr 26, 2024
1 parent 0c78454 commit 4d12646
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 21 deletions.
18 changes: 4 additions & 14 deletions .buildkite/scripts/dra.sh
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 1 addition & 4 deletions .ci/jobs/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,3 @@ repos:
hooks:
- id: check-jenkins-pipelines
files: ^(.ci/(.*\.groovy|Jenkinsfile)|Jenkinsfile)$
- id: check-jjbb
10 changes: 8 additions & 2 deletions catalog-info.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4d12646

Please sign in to comment.