Method: Gitlab::Client::Jobs#job_artifacts_keep

Defined in:
lib/gitlab/client/jobs.rb

#job_artifacts_keep(project_id, job_id) ⇒ Array<Gitlab::ObjectifiedHash>

Keep Artifacts Prevents artifacts from being deleted when expiration is set.

Examples:

Gitlab.job_artifacts_keep(1,1)
Gitlab.job_artifacts_keep("project", 1)

Parameters:

  • ID or name of a project.

  • id of the job

Returns:



232
233
234
# File 'lib/gitlab/client/jobs.rb', line 232

def job_artifacts_keep(project_id, job_id)
  post("/projects/#{url_encode project_id}/jobs/#{job_id}/artifacts/keep")
end