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:
authorRobert Speicher <rspeicher@gmail.com>2021-01-20 22:34:23 +0300
committerRobert Speicher <rspeicher@gmail.com>2021-01-20 22:34:23 +0300
commit6438df3a1e0fb944485cebf07976160184697d72 (patch)
tree00b09bfd170e77ae9391b1a2f5a93ef6839f2597 /scripts/api
parent42bcd54d971da7ef2854b896a7b34f4ef8601067 (diff)
Add latest changes from gitlab-org/gitlab@13-8-stable-eev13.8.0-rc42
Diffstat (limited to 'scripts/api')
-rwxr-xr-xscripts/api/cancel_pipeline.rb (renamed from scripts/api/cancel_pipeline)0
-rwxr-xr-xscripts/api/download_job_artifact.rb (renamed from scripts/api/download_job_artifact)0
-rwxr-xr-xscripts/api/get_job_id.rb (renamed from scripts/api/get_job_id)0
-rwxr-xr-xscripts/api/play_job.rb (renamed from scripts/api/play_job)9
4 files changed, 6 insertions, 3 deletions
diff --git a/scripts/api/cancel_pipeline b/scripts/api/cancel_pipeline.rb
index 0965877a69a..0965877a69a 100755
--- a/scripts/api/cancel_pipeline
+++ b/scripts/api/cancel_pipeline.rb
diff --git a/scripts/api/download_job_artifact b/scripts/api/download_job_artifact.rb
index 8e2207c6fa7..8e2207c6fa7 100755
--- a/scripts/api/download_job_artifact
+++ b/scripts/api/download_job_artifact.rb
diff --git a/scripts/api/get_job_id b/scripts/api/get_job_id.rb
index c7fe859db91..c7fe859db91 100755
--- a/scripts/api/get_job_id
+++ b/scripts/api/get_job_id.rb
diff --git a/scripts/api/play_job b/scripts/api/play_job.rb
index 199f7e65633..408dfdf1ef0 100755
--- a/scripts/api/play_job
+++ b/scripts/api/play_job.rb
@@ -14,7 +14,6 @@ class PlayJob
}.freeze
def initialize(options)
- @project = options.delete(:project)
@options = options
Gitlab.configure do |config|
@@ -24,14 +23,18 @@ class PlayJob
end
def execute
- job = JobFinder.new(project, options.slice(:api_token, :pipeline_id, :job_name).merge(scope: 'manual')).execute
+ job = JobFinder.new(options.slice(:project, :api_token, :pipeline_id, :job_name).merge(scope: 'manual')).execute
Gitlab.job_play(project, job.id)
end
private
- attr_reader :project, :options
+ attr_reader :options
+
+ def project
+ options[:project]
+ end
end
if $0 == __FILE__