summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2017-09-05 18:39:01 +0200
committerAchilleas Pipinellis <axilleas@axilleas.me>2017-09-06 21:12:49 +0200
commitb8fd1cb61013963c6bf54a38166b14bebb303708 (patch)
tree0b82b6f8fe35c01861d431cbada57063f1efc1b0
parenta4c837a1c6d8dfb5a5fa74869471b47181e61cc1 (diff)
downloadgitlab-ce-docs/trigger-preview.tar.gz
Better output messagedocs/trigger-preview
-rwxr-xr-xscripts/trigger-build-docs8
1 files changed, 6 insertions, 2 deletions
diff --git a/scripts/trigger-build-docs b/scripts/trigger-build-docs
index 04aab1cae91..42ba024da70 100755
--- a/scripts/trigger-build-docs
+++ b/scripts/trigger-build-docs
@@ -45,10 +45,14 @@ def trigger_pipeline
app_url = "http://#{@docs_branch}.#{ENV["DOCS_REVIEW_APPS_DOMAIN"]}/#{is_ee? ? 'ee' : 'ce'}"
# Create the pipeline
+ puts "=> Triggering a pipeline..."
pipeline = Gitlab.run_trigger(GITLAB_DOCS_REPO, ENV["DOCS_TRIGGER_TOKEN"], @docs_branch, { param_name => ENV["CI_COMMIT_REF_NAME"] })
- puts "Triggered pipeline: https://gitlab.com/gitlab-com/gitlab-docs/pipelines/#{pipeline.id}"
- puts "Preview your changes live at:"
+ puts "=> Pipeline created:"
+ puts ""
+ puts "https://gitlab.com/gitlab-com/gitlab-docs/pipelines/#{pipeline.id}"
+ puts ""
+ puts "=> Preview your changes live at:"
puts ""
puts app_url
puts ""