summaryrefslogtreecommitdiff
path: root/scripts/trigger-build-omnibus
diff options
context:
space:
mode:
authorBalasankar "Balu" C <balasankar@gitlab.com>2017-12-14 17:43:06 +0530
committerBalasankar "Balu" C <balasankar@gitlab.com>2017-12-15 11:29:52 +0530
commitab78b570f49f6b1dd14a14803f41e7447c936946 (patch)
treea7d2089024a6abf1746855d242a726a209b0b415 /scripts/trigger-build-omnibus
parent963b007b01bf88d11247457f2f042409b263a1aa (diff)
downloadgitlab-ce-ab78b570f49f6b1dd14a14803f41e7447c936946.tar.gz
Prettify
Diffstat (limited to 'scripts/trigger-build-omnibus')
-rwxr-xr-xscripts/trigger-build-omnibus13
1 files changed, 9 insertions, 4 deletions
diff --git a/scripts/trigger-build-omnibus b/scripts/trigger-build-omnibus
index b64f1824fd7..98d03780a0c 100755
--- a/scripts/trigger-build-omnibus
+++ b/scripts/trigger-build-omnibus
@@ -21,6 +21,7 @@ module Omnibus
if id
puts "Triggered https://gitlab.com/#{Omnibus::PROJECT_PATH}/pipelines/#{id}"
+ puts "Waiting for downstream pipeline status"
else
raise "Trigger failed! The response from the trigger is: #{res.body}"
end
@@ -36,12 +37,12 @@ module Omnibus
def env_params
{
- "ref" => "trigger-user-pipeline-info",
+ "ref" => ENV["OMNIBUS_BRANCH"] || "master",
"variables[GITLAB_VERSION]" => ENV["CI_COMMIT_SHA"],
"variables[ALTERNATIVE_SOURCES]" => true,
"variables[ee]" => ee? ? 'true' : 'false',
"variables[TRIGGERED_USER]" => ENV["GITLAB_USER_NAME"],
- "variables[TRIGGER_SOURCE_JOB]" => "https://gitlab.com/gitlab-org/#{ENV['CI_PROJECT_NAME']}/-/jobs/#{ENV['CI_JOB_ID']}"
+ "variables[TRIGGER_SOURCE]" => "https://gitlab.com/gitlab-org/#{ENV['CI_PROJECT_NAME']}/-/jobs/#{ENV['CI_JOB_ID']}"
}
end
@@ -65,13 +66,17 @@ module Omnibus
def wait!
loop do
- raise 'Pipeline timeout!' if timeout?
+ if timeout?
+ puts "\nWaited for #{((Time.now.to_i - @start)/60)} minutes"
+ raise 'Pipeline timeout!'
+ end
case status
when :created, :pending, :running
- puts "Waiting another #{INTERVAL} seconds ..."
+ print "."
sleep INTERVAL
when :success
+ puts "\nWaited for #{((Time.now.to_i - @start)/60)} minutes"
puts "Omnibus pipeline succeeded!"
break
else