diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-16 09:09:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-16 09:09:08 +0300 |
commit | 80f5d0d15f8d7ced767651978fb016072003f376 (patch) | |
tree | 8ddbe65b30cf5f2d2b6543bac7f7508ba259b9ec /scripts/api/default_options.rb | |
parent | 2a3313dc5ec97ba732681fe034de900215807ac3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'scripts/api/default_options.rb')
-rw-r--r-- | scripts/api/default_options.rb | 11 |
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 |