Method: Gitlab::Client::BuildVariables#variable

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

#variable(project, key) ⇒ Gitlab::ObjectifiedHash

Gets details of a project’s specific build variable.

Examples:

Gitlab.build(5, "TEST_VARIABLE_1")

Parameters:

  • project (Integer, String)

    The ID or name of a project.

  • key (String)

    The key of a variable.

Returns:



24
25
26
# File 'lib/gitlab/client/build_variables.rb', line 24

def variable(project, key)
  get("/projects/#{url_encode project}/variables/#{key}")
end