Module: Buildkit::Client::Jobs
- Included in:
- Buildkit::Client
- Defined in:
- lib/buildkit/client/jobs.rb
Overview
Methods for the Jobs API
Instance Method Summary collapse
-
#job_env(org, pipeline, build, job, options = {}) ⇒ Array<Sawyer::Resource>
Get a job’s environment variables.
-
#retry_job(org, pipeline, build, job, options = {}) ⇒ Array<Sawyer::Resource>
Retry a job.
Instance Method Details
#job_env(org, pipeline, build, job, options = {}) ⇒ Array<Sawyer::Resource>
Get a job’s environment variables
31 32 33 |
# File 'lib/buildkit/client/jobs.rb', line 31 def job_env(org, pipeline, build, job, = {}) get("/v2/organizations/#{org}/pipelines/#{pipeline}/builds/#{build}/jobs/#{job}/env", ) end |
#retry_job(org, pipeline, build, job, options = {}) ⇒ Array<Sawyer::Resource>
Retry a job
17 18 19 |
# File 'lib/buildkit/client/jobs.rb', line 17 def retry_job(org, pipeline, build, job, = {}) put("/v2/organizations/#{org}/pipelines/#{pipeline}/builds/#{build}/jobs/#{job}/retry", ) end |