Skip to content
Snippets Groups Projects
Commit e357f583 authored by Tom Behets's avatar Tom Behets Committed by betz
Browse files

Issue #3174769 by betz: getPipeline and getPipelineJobs methods

parent 20aef35a
No related branches found
No related tags found
No related merge requests found
......@@ -75,4 +75,36 @@ class Api {
return $this->client->projects()->createPipeline($project_id, $commit_ref, $variables);
}
/**
* @param int|string $project_id
* @param int $pipeline_id
*
* @return mixed
*/
public function getPipeline($project_id, $pipeline_id): array {
$this->init();
return $this->client->projects()->pipeline($project_id, $pipeline_id);
}
/**
* @param int|string $project_id
* @param int $pipeline_id
*
* @return mixed
*/
public function getPipelineJobs($project_id, $pipeline_id): array {
$this->init();
return $this->client->jobs()->pipelineJobs($project_id, $pipeline_id);
}
/**
* @param int|string $project_id
* @param int $job_id
*
* @return mixed
*/
public function getPipelineJob($project_id, $job_id): array {
$this->init();
return $this->client->jobs()->show($project_id, $job_id);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment