Method: Gitlab::Client::Pipelines#cancel_pipeline

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

#cancel_pipeline(project, id) ⇒ Gitlab::ObjectifiedHash

Cancels a pipeline.

Examples:

Gitlab.cancel_pipeline(5, 1)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of a pipeline.

Returns:

[View source]

89
90
91
# File 'lib/gitlab/client/pipelines.rb', line 89

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