module Gitlab::Client::Pipelines

def cancel_pipeline(project, id)

Returns:
  • (Gitlab::ObjectifiedHash) - The pipelines changes.

Parameters:
  • id (Integer) -- The ID of a pipeline.
  • project (Integer, String) -- The ID or name of a project.
def cancel_pipeline(project, id)
  post("/projects/#{url_encode project}/pipelines/#{id}/cancel")
end