Skip to content

Commit 3b15ad6

Browse files
committed
Ignore pipeline branch filters when we trigger Buildkite via API
1 parent ac740bd commit 3b15ad6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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)