summaryrefslogtreecommitdiff
path: root/doc/ci/yaml
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2017-05-15 07:59:45 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2017-05-15 07:59:45 +0000
commite261b4b8517ba6d5d5b082f1955836c945fd51fc (patch)
tree918873241226d8d1b1d3a9b7e0f7280f0f6984a6 /doc/ci/yaml
parentae8511df1312d85745baddec0b54401b36d46126 (diff)
parent295cecfb56af4e064340d255140a28959c47b25d (diff)
downloadgitlab-ce-e261b4b8517ba6d5d5b082f1955836c945fd51fc.tar.gz
Merge branch 'allow_numeric_values_in_gitlab_ci_yml' into 'master'
Allow numeric values in gitlab-ci.yml Closes #30017 See merge request !10607
Diffstat (limited to 'doc/ci/yaml')
-rw-r--r--doc/ci/yaml/README.md6
1 files changed, 5 insertions, 1 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index 16308a957cb..8546a99a022 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -147,6 +147,10 @@ variables:
DATABASE_URL: "postgres://postgres@postgres/my_database"
```
+>**Note:**
+Integers (as well as strings) are legal both for variable's name and value.
+Floats are not legal and cannot be used.
+
These variables can be later used in all executed commands and scripts.
The YAML-defined variables are also set to all created service containers,
thus allowing to fine tune them. Variables can be also defined on a
@@ -1152,7 +1156,7 @@ Example:
```yaml
variables:
- GET_SOURCES_ATTEMPTS: "3"
+ GET_SOURCES_ATTEMPTS: 3
```
You can set them in the global [`variables`](#variables) section or the