summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-10-20 06:57:21 +0000
committerRémy Coutable <remy@rymai.me>2017-10-20 06:57:21 +0000
commitb4dc0ba2c57c150f847d255b0d2d831ff60728ad (patch)
tree5e064c1fcdd8dbc0cf44b37343f7dcfa312595b9
parenta4416c394150724b4162083a2101d36b22410228 (diff)
parent37500cb79e4b2cc6fab28fa2987af4c57ffdf2ca (diff)
downloadgitlab-ce-b4dc0ba2c57c150f847d255b0d2d831ff60728ad.tar.gz
Merge branch 'patch-24' into 'master'
add note about after_script being run separately See merge request gitlab-org/gitlab-ce!13689
-rw-r--r--doc/ci/yaml/README.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index 38bd0450a09..6ad70707594 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -95,6 +95,12 @@ be an array or a multi-line string.
`after_script` is used to define the command that will be run after for all
jobs. This has to be an array or a multi-line string.
+> **Note:**
+The `before_script` and the main `script` are concatenated and run in a single context/container.
+The `after_script` is run separately, so depending on the executor, changes done
+outside of the working tree might not be visible, e.g. software installed in the
+`before_script`.
+
### stages
`stages` is used to define stages that can be used by jobs.