diff options
author | Balasankar C <balasankar@gitlab.com> | 2017-06-09 16:37:50 +0530 |
---|---|---|
committer | Balasankar C <balasankar@gitlab.com> | 2017-06-09 17:09:46 +0530 |
commit | fb2ab2a374745e3aebde09ecc84a8117bd216c03 (patch) | |
tree | c42933df03243b609da6d264fd08bcef14c8b596 /scripts | |
parent | 66aad16d1aaa426237e52ef19385385566f194dc (diff) | |
download | gitlab-ce-fb2ab2a374745e3aebde09ecc84a8117bd216c03.tar.gz |
Pass false to trigger if EE_PACKAGE not setfix-triggered-builds
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/trigger-build | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/trigger-build b/scripts/trigger-build index e4603533872..dcda70d7ed8 100755 --- a/scripts/trigger-build +++ b/scripts/trigger-build @@ -9,7 +9,7 @@ params = { "token" => ENV["BUILD_TRIGGER_TOKEN"], "variables[GITLAB_VERSION]" => ENV["CI_COMMIT_SHA"], "variables[ALTERNATIVE_SOURCES]" => true, - "variables[ee]" => ENV["EE_PACKAGE"] + "variables[ee]" => ENV["EE_PACKAGE"] || "false" } Dir.glob("*_VERSION").each do |version_file| @@ -19,4 +19,9 @@ end res = Net::HTTP.post_form(uri, params) pipeline_id = JSON.parse(res.body)['id'] -puts "Triggered pipeline can be found at https://gitlab.com/gitlab-org/omnibus-gitlab/pipelines/#{pipeline_id}" +unless pipeline_id.nil? + puts "Triggered pipeline can be found at https://gitlab.com/gitlab-org/omnibus-gitlab/pipelines/#{pipeline_id}" +else + puts "Trigger failed. The response from trigger is: " + puts res.body +end |