Method: Gitlab::Client::Pipelines#retry_pipeline

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

#retry_pipeline(project, id) ⇒ Array<Gitlab::ObjectifiedHash>

Retry a pipeline.

Examples:

Gitlab.retry_pipeline(5, 1)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of a pipeline.

Returns:


101
102
103
# File 'lib/gitlab/client/pipelines.rb', line 101

def retry_pipeline(project, id)
  post("/projects/#{url_encode project}/pipelines/#{id}/retry")
end