Method: Gitlab::Client::Pipelines#pipeline_variables

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

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

Gets a single pipeline’s variables.

Examples:

Gitlab.pipeline_variables(5, 36)

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • id (Integer)

    The ID of a pipeline.

Returns:


54
55
56
# File 'lib/gitlab/client/pipelines.rb', line 54

def pipeline_variables(project, id)
  get("/projects/#{url_encode project}/pipelines/#{id}/variables")
end