Skip to content

Commit ca0f2be

Browse files
committed
Print the URL of a Buildkite build after triggering it
Especially useful as you can cmd-click on the URL in terminal to open it directly in your browser
1 parent 726c93f commit ca0f2be

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

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)