We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8046bdd commit 339429eCopy full SHA for 339429e
.buildkite/scripts/steps/es_snapshots/trigger_promote.sh
@@ -9,6 +9,13 @@ set -euo pipefail
9
10
export ES_SNAPSHOT_MANIFEST="${ES_SNAPSHOT_MANIFEST:-"$(buildkite-agent meta-data get ES_SNAPSHOT_MANIFEST)"}"
11
12
+if [[ "${BUILDKITE_BRANCH:-}" =~ ^(main|\d+\.\d+)$ ]] || [[ "${FORCE_PROMOTE:-}" =~ ^(1|true)$ ]]; then
13
+ echo "Promoting snapshots on branch: ${BUILDKITE_BRANCH}"
14
+else
15
+ echo "ES Promotion is not allowed on feature branch ${BUILDKITE_BRANCH}"
16
+ exit 0
17
+fi
18
+
19
cat << EOF | buildkite-agent pipeline upload
20
steps:
21
- trigger: 'kibana-elasticsearch-snapshot-promote'
0 commit comments