Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'qa/qa/support/helpers/mask_token.rb')
-rw-r--r--qa/qa/support/helpers/mask_token.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/qa/qa/support/helpers/mask_token.rb b/qa/qa/support/helpers/mask_token.rb
index 1f8161f7173..0c0af524c97 100644
--- a/qa/qa/support/helpers/mask_token.rb
+++ b/qa/qa/support/helpers/mask_token.rb
@@ -13,6 +13,16 @@ module QA
end
"$#{name}"
end
+
+ def use_group_ci_variable(name:, value:, group:)
+ Resource::GroupCiVariable.fabricate_via_api! do |ci_variable|
+ ci_variable.group = group
+ ci_variable.key = name
+ ci_variable.value = value
+ ci_variable.protected = true
+ end
+ "$#{name}"
+ end
end
end
end