Skip to content

Commit bedfdb1

Browse files
authored
Merge pull request #468 from wordpress-mobile/ignore/buildkite-pipeline-branch-filters-for-api-triggers
Ignore pipeline branch filters when we trigger Buildkite via API
2 parents ac740bd + cb8cbc8 commit bedfdb1

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ _None_
2121
- Add "Mobile Secrets" to `configure_update` current branch message to clarify which repo it's referring to. [#455]
2222
- `buildkite_trigger_build` now prints the web URL of the newly scheduled build, to allow you to easily open it via cmd-click. [#460]
2323
- Add the branch information to the 'This is not a release branch' error that's thrown from complete code freeze lane. [#461]
24+
- Adds `ignore_pipeline_branch_filters=true` parameter to the API call triggering a Buildkite build [#468]
2425

2526
## 7.0.0
2627

lib/fastlane/plugin/wpmreleasetoolkit/actions/common/buildkite_trigger_build_action.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ def self.run(params)
1313
branch: params[:branch],
1414
commit: params[:commit],
1515
env: params[:environment].merge(pipeline_name),
16-
message: params[:message]
16+
message: params[:message],
17+
# Buildkite will not trigger a build if the GitHub activity for that branch is turned off
18+
# We want API triggers to work regardless of the GitHub activity settings, so this option is necessary
19+
# https://forum.buildkite.community/t/request-build-error-branches-have-been-disabled-for-this-pipeline/1463/2
20+
ignore_pipeline_branch_filters: true
1721
}.compact # remove entries with `nil` values from the Hash, if any
1822

1923
client = Buildkit.new(token: params[:buildkite_token])

0 commit comments

Comments
 (0)