Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axil@gitlab.com>2017-09-07 18:43:20 +0300
committerRémy Coutable <remy@rymai.me>2017-09-07 18:43:20 +0300
commitecdab9f96f5ab94292b52010618847e88e8573fd (patch)
tree9b03335ced51b8682214b7b62d3b986c04fa4455 /scripts/trigger-build
parent4ae8e20c9c860e5d5d6a148e9f4ee0ae7b8c8946 (diff)
Add script and job to trigger a docs build
Diffstat (limited to 'scripts/trigger-build')
-rwxr-xr-xscripts/trigger-build27
1 files changed, 0 insertions, 27 deletions
diff --git a/scripts/trigger-build b/scripts/trigger-build
deleted file mode 100755
index dcda70d7ed8..00000000000
--- a/scripts/trigger-build
+++ /dev/null
@@ -1,27 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'net/http'
-require 'json'
-
-uri = URI('https://gitlab.com/api/v4/projects/20699/trigger/pipeline')
-params = {
- "ref" => ENV["OMNIBUS_BRANCH"] || "master",
- "token" => ENV["BUILD_TRIGGER_TOKEN"],
- "variables[GITLAB_VERSION]" => ENV["CI_COMMIT_SHA"],
- "variables[ALTERNATIVE_SOURCES]" => true,
- "variables[ee]" => ENV["EE_PACKAGE"] || "false"
-}
-
-Dir.glob("*_VERSION").each do |version_file|
- params["variables[#{version_file}]"] = File.read(version_file).strip
-end
-
-res = Net::HTTP.post_form(uri, params)
-pipeline_id = JSON.parse(res.body)['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