Difference between revisions of "GitLab CI/CD variables"
Jump to navigation
Jump to search
↑ https://about.gitlab.com/releases/2019/04/22/gitlab-11-10-released/#simple-masking-of-protected-variables-in-logs
↑ https://www.shellhacks.com/gitlab-ci-cd-print-all-environment-variables/
Line 6: | Line 6: | ||
* Protected, masked<ref>https://about.gitlab.com/releases/2019/04/22/gitlab-11-10-released/#simple-masking-of-protected-variables-in-logs</ref> ([[GitLab 11.10]], 2019). https://docs.gitlab.com/ee/ci/variables/ | * Protected, masked<ref>https://about.gitlab.com/releases/2019/04/22/gitlab-11-10-released/#simple-masking-of-protected-variables-in-logs</ref> ([[GitLab 11.10]], 2019). https://docs.gitlab.com/ee/ci/variables/ | ||
− | |||
print-all-env-vars-job: | print-all-env-vars-job: | ||
stage: debug | stage: debug | ||
Line 12: | Line 11: | ||
- echo "GitLab CI/CD | Print all environment variables" | - echo "GitLab CI/CD | Print all environment variables" | ||
- env | - env | ||
− | + | <ref>https://www.shellhacks.com/gitlab-ci-cd-print-all-environment-variables/</ref> | |
== Activities == | == Activities == |
Revision as of 10:28, 27 September 2022
- Protected, masked[1] (GitLab 11.10, 2019). https://docs.gitlab.com/ee/ci/variables/
print-all-env-vars-job: stage: debug script: - echo "GitLab CI/CD | Print all environment variables" - env
Activities
- Review predefined variables: https://docs.gitlab.com/ee/ci/variables/predefined_variables.html and self defined variables https://docs.gitlab.com/ee/ci/variables/README.html#creating-a-custom-environment-variable in
gitlab-ci.yml
or inSettings > CI/CD > Variables
in your project
See also
- GitLab CI, variables, templates, executors,
.gitlab-ci.yml, .gitlab/
, Credential helpers, notifications, pipeline editor, Keyword reference, Changelog,ContainersNotReady
, GitLab environments
Advertising: