Method: Gitlab::Client::BuildVariables#group_variable

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

#group_variable(group, key) ⇒ Gitlab::ObjectifiedHash

Gets details of a group’s specific build variable.

Examples:

Gitlab.group_variable(5, "TEST_VARIABLE_1")

Parameters:

  • group (Integer, String)

    The ID or name of a group.

  • key (String)

    The key of a variable.

Returns:



91
92
93
# File 'lib/gitlab/client/build_variables.rb', line 91

def group_variable(group, key)
  get("/groups/#{url_encode group}/variables/#{key}")
end