summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorAchilleas Pipinellis <axilleas@axilleas.me>2017-07-03 16:43:06 +0200
committerShinya Maeda <shinya@gitlab.com>2017-07-07 15:35:12 +0900
commitd633bf0afbcd18e8762eef58d12ec3a2bbb1a7bd (patch)
tree7b3890cd02fd54af7e596b0f2d5bedba69b04dda /doc
parent5b0954759cc24bdba97be89bb117c5440174f859 (diff)
downloadgitlab-ce-d633bf0afbcd18e8762eef58d12ec3a2bbb1a7bd.tar.gz
Copyedit docs for group-level secret variables
[ci skip]
Diffstat (limited to 'doc')
-rw-r--r--doc/ci/variables/README.md40
1 files changed, 16 insertions, 24 deletions
diff --git a/doc/ci/variables/README.md b/doc/ci/variables/README.md
index ee3349d9526..548716448e6 100644
--- a/doc/ci/variables/README.md
+++ b/doc/ci/variables/README.md
@@ -10,8 +10,8 @@ The variables can be overwritten and they take precedence over each other in
this order:
1. [Trigger variables][triggers] (take precedence over all)
-1. [Project-level secret variables](#project-level-secret-variables)
-1. [Group-level secret variables](#group-level-secret-variables)
+1. Project-level [secret variables](#secret-variables) or [protected secret variables](#protected-secret-variables)
+1. Group-level [secret variables](#secret-variables) or [protected secret variables](#protected-secret-variables)
1. YAML-defined [job-level variables](../yaml/README.md#job-variables)
1. YAML-defined [global variables](../yaml/README.md#variables)
1. [Deployment variables](#deployment-variables)
@@ -139,25 +139,29 @@ script:
- 'eval $LS_CMD' # will execute 'ls -al $TMP_DIR'
```
-## Project-level secret variables
+## Secret variables
>**Notes:**
- This feature requires GitLab Runner 0.4.0 or higher.
+- Group-level secret variables added in GitLab 9.4.
- Be aware that secret variables are not masked, and their values can be shown
in the job logs if explicitly asked to do so. If your project is public or
internal, you can set the pipelines private from your project's Pipelines
settings. Follow the discussion in issue [#13784][ce-13784] for masking the
secret variables.
-GitLab CI allows you to define per-project **secret variables** that are set in
-the build environment. The secret variables are stored out of the repository
-(`.gitlab-ci.yml`) and are securely passed to GitLab Runner making them
-available in the build environment. It's the recommended method to use for
-storing things like passwords, secret keys and credentials.
+GitLab CI allows you to define per-project or per-group **secret variables**
+that are set in the build environment. The secret variables are stored out of
+the repository (`.gitlab-ci.yml`) and are securely passed to GitLab Runner
+making them available in the build environment. It's the recommended method to
+use for storing things like passwords, secret keys and credentials.
-Secret variables can be added by going to your project's
-**Settings ➔ Pipelines**, then finding the section called
-**Secret variables**.
+Project-level secret variables can be added by going to your project's
+**Settings ➔ Pipelines**, then finding the section called **Secret variables**.
+
+Likewise, group-level secret variables can be added by going to your group's
+**Settings ➔ Pipelines**, then finding the section called **Secret variables**.
+Any variables of [subgroups] will be inherited recursively.
Once you set them, they will be available for all subsequent pipelines. You can also
[protect your variables](#protected-secret-variables).
@@ -178,19 +182,6 @@ Protected variables can be added by going to your project's
Once you set them, they will be available for all subsequent pipelines.
-## Group-level secret variables
-
->**Notes:**
-This feature requires GitLab 9.4 or higher.
-
-You can also define variables per Group. The essential functionality is exactly the
-same with [project-level secret variables](#project-level-secret-variables). You
-can also [protect your variables](#protected-secret-variables).
-
-Secret variables can be added by going to your group's
-**Settings ➔ Pipelines**, then finding the section called
-**Secret variables**.
-
## Deployment variables
>**Note:**
@@ -449,3 +440,4 @@ export CI_REGISTRY_PASSWORD="longalfanumstring"
[shellexecutors]: https://docs.gitlab.com/runner/executors/
[triggered]: ../triggers/README.md
[triggers]: ../triggers/README.md#pass-job-variables-to-a-trigger
+[subgroups]: ../../user/group/subgroups/index.md