Method: Gitlab::Client::BuildVariables#update_group_variable

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

#update_group_variable(group, key, value, **opts) ⇒ Gitlab::ObjectifiedHash

Update a group’s build variable.

Examples:

Gitlab.update_group_variable(5, "NEW_VARIABLE", "updated value")

Parameters:

  • group (Integer, String)

    The ID or name of a group.

  • key (String)

    The key of a variable

  • value (String)

    The value of a variable

  • opts (Hash)

    optional parameters

Returns:



119
120
121
# File 'lib/gitlab/client/build_variables.rb', line 119

def update_group_variable(group, key, value, **opts)
  put("/groups/#{url_encode group}/variables/#{key}", body: opts.merge(value: value))
end