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:
Diffstat (limited to 'qa/qa/resource/pipeline.rb')
-rw-r--r--qa/qa/resource/pipeline.rb14
1 files changed, 11 insertions, 3 deletions
diff --git a/qa/qa/resource/pipeline.rb b/qa/qa/resource/pipeline.rb
index 910065d76a8..7d5036c5cf4 100644
--- a/qa/qa/resource/pipeline.rb
+++ b/qa/qa/resource/pipeline.rb
@@ -10,9 +10,9 @@ module QA
end
attributes :id,
- :status,
- :ref,
- :sha
+ :status,
+ :ref,
+ :sha
# array in form
# [
@@ -49,6 +49,10 @@ module QA
"/projects/#{project.id}/pipelines/#{id}"
end
+ def api_pipeline_jobs_path
+ "#{api_get_path}/jobs"
+ end
+
def api_post_path
"/projects/#{project.id}/pipeline"
end
@@ -93,6 +97,10 @@ module QA
result[:downstream_pipeline][:id]
end
+
+ def pipeline_jobs
+ parse_body(api_get_from(api_pipeline_jobs_path))
+ end
end
end
end