Method: Gitlab::Client::Pipelines#update_pipeline_metadata

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

#update_pipeline_metadata(project, id, options = {}) ⇒ Gitlab::ObjectifiedHash

Update a pipeline metadata

Examples:

Gitlab.(5, 1, name: 'new name')

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of a pipeline.

  • options (Hash) (defaults to: {})

    a customizable set of options

Options Hash (options):

  • :name (String)

    The new name of the pipeline.

Returns:

[View source]

126
127
128
# File 'lib/gitlab/client/pipelines.rb', line 126

def (project, id, options = {})
  put("/projects/#{url_encode project}/pipelines/#{id}/metadata", body: options)
end