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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-08-16 09:09:08 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-08-16 09:09:08 +0300
commit80f5d0d15f8d7ced767651978fb016072003f376 (patch)
tree8ddbe65b30cf5f2d2b6543bac7f7508ba259b9ec /scripts/api/default_options.rb
parent2a3313dc5ec97ba732681fe034de900215807ac3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/api/default_options.rb')
-rw-r--r--scripts/api/default_options.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/scripts/api/default_options.rb b/scripts/api/default_options.rb
new file mode 100644
index 00000000000..70fb9683733
--- /dev/null
+++ b/scripts/api/default_options.rb
@@ -0,0 +1,11 @@
+# frozen_string_literal: true
+
+module API
+ DEFAULT_OPTIONS = {
+ project: ENV['CI_PROJECT_ID'],
+ pipeline_id: ENV['CI_PIPELINE_ID'],
+ # Default to "CI scripts API usage" at https://gitlab.com/gitlab-org/gitlab/-/settings/access_tokens
+ api_token: ENV['PROJECT_TOKEN_FOR_CI_SCRIPTS_API_USAGE'],
+ endpoint: ENV['CI_API_V4_URL'] || 'https://gitlab.com/api/v4'
+ }.freeze
+end