Skip to content

Commit 805674d

Browse files
authored
Merge pull request #460 from wordpress-mobile/buildkite/print-url-of-triggered-build
Print the URL of a Buildkite build after triggering it
2 parents f0f9dac + 30e00e6 commit 805674d

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
@@ -19,6 +19,7 @@ _None_
1919
### Internal Changes
2020

2121
- Add "Mobile Secrets" to `configure_update` current branch message to clarify which repo it's referring to. [#455]
22+
- `buildkite_trigger_build` now prints the web URL of the newly scheduled build, to allow you to easily open it via cmd-click. [#460]
2223

2324
## 7.0.0
2425

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
@@ -23,7 +23,11 @@ def self.run(params)
2323
options
2424
)
2525

26-
response.state == 'scheduled' ? UI.message('Done!') : UI.crash!("Failed to start job\nError: [#{response}]")
26+
if response.state == 'scheduled'
27+
UI.message("Successfully scheduled new build. You can see it at '#{response.web_url}'")
28+
else
29+
UI.crash!("Failed to start job\nError: [#{response}]")
30+
end
2731
end
2832

2933
#####################################################

0 commit comments

Comments
 (0)