Method: Gitlab::Client::Jobs#job_artifacts_delete

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

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

Delete Artifacts Deletes the artifacts associated with a job.

Examples:

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

Parameters:

  • The (Integer, String)

    ID or name of a project.

  • the (Integer)

    id of the job

Returns:



246
247
248
# File 'lib/gitlab/client/jobs.rb', line 246

def job_artifacts_delete(project_id, job_id)
  delete("/projects/#{url_encode project_id}/jobs/#{job_id}/artifacts")
end