Skip to content

Commit

Permalink
Allow simulating a trigger
Browse files Browse the repository at this point in the history
To facilitate testing, we relax the conditionals that control the
pipeline execution.

This commit will be reverted before merging.
  • Loading branch information
dliappis committed Jun 26, 2024
1 parent 009de28 commit de857fc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ steps:
// Only run when triggered from Unified Release or via PRs targetting main or release branches
(
( ( build.branch == 'main' || build.branch =~ /^[0-9]+\.[0-9]+\$/ ) && build.env("BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG") == "unified-release-snapshot" ) ||
( build.branch == 'honor-version-from-stack-url' ) ||
( build.env("BUILDKITE_PULL_REQUEST") != "false" && ( build.env("BUILDKITE_PULL_REQUEST_BASE_BRANCH") == 'main' || build.env("BUILDKITE_PULL_REQUEST_BASE_BRANCH") =~ /^[0-9]+\.[0-9]+\$/ ) )
)
steps:
Expand All @@ -26,7 +27,7 @@ steps:
if: |
// Only run when triggered from Unified Release and not from PRs
(
( build.branch == 'main' || build.branch =~ /^[0-9]+\.[0-9]+\$/ ) &&
( build.branch == 'main' || build.branch =~ /^[0-9]+\.[0-9]+\$/ || build.branch == 'honor-version-from-stack-url') &&
build.env("BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG") == "unified-release-snapshot"
)
command: ".buildkite/scripts/dra-publish.sh"
Expand Down

0 comments on commit de857fc

Please sign in to comment.