summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-11-24 14:37:57 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-11-24 14:46:48 +0100
commit3d2ef22800c56579c9916b020a148b1707a66a9a (patch)
tree889d6d08cee06feb37f14d7f05c2e60e98fff19c
parent725793c6712426cb9dcb983de8c7884a83caf24a (diff)
downloadgitlab-ce-qa/gb/add-feedback-to-package-qa-action.tar.gz
Change Omnibus QA pipeline timeout to 3 hoursqa/gb/add-feedback-to-package-qa-action
-rwxr-xr-xscripts/trigger-build-omnibus10
1 files changed, 6 insertions, 4 deletions
diff --git a/scripts/trigger-build-omnibus b/scripts/trigger-build-omnibus
index 2e2a9ded29b..0c662ac19d2 100755
--- a/scripts/trigger-build-omnibus
+++ b/scripts/trigger-build-omnibus
@@ -31,10 +31,12 @@ module Omnibus
private
def env_params
- { "ref" => ENV["OMNIBUS_BRANCH"] || "master",
+ {
+ "ref" => ENV["OMNIBUS_BRANCH"] || "master",
"variables[GITLAB_VERSION]" => ENV["CI_COMMIT_SHA"],
"variables[ALTERNATIVE_SOURCES]" => true,
- "variables[ee]" => ENV["EE_PACKAGE"] || "false" }
+ "variables[ee]" => ENV["EE_PACKAGE"] || "false"
+ }
end
def file_params
@@ -48,11 +50,11 @@ module Omnibus
class Pipeline
INTERVAL = 60 # seconds
- MAX_DURATION = 3600 # 1 hour
+ MAX_DURATION = 3600 * 3 # 3 hours
def initialize(id)
@start = Time.now.to_i
- @uri = URI("https://gitlab.com/api/v4/projects/#{Omnibus::PROJECT_ID}/pipelines/#{id}")
+ @uri = URI("https://gitlab.com/api/v4/projects/#{CGI.escape(Omnibus::PROJECT_PATH)}/pipelines/#{id}")
end
def wait!