diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-17 09:10:47 -0400 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-04-17 09:10:47 -0400 |
commit | 38b15e35d48550a5621b8fc292cabc5670897a44 (patch) | |
tree | 04e263a769fb96f1be534f4f3978c5206204c044 /doc | |
parent | 5a7e4dfd3362d08c856fdfcf4b82584c2cac169f (diff) | |
download | gitlab-ce-38b15e35d48550a5621b8fc292cabc5670897a44.tar.gz |
Update CHANGELOG and add documentation
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ci/yaml/README.md | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md index 54b06f10b95..c626bee5703 100644 --- a/doc/ci/yaml/README.md +++ b/doc/ci/yaml/README.md @@ -30,6 +30,7 @@ If you want a quick introduction to GitLab CI, follow our - [artifacts](#artifacts) - [artifacts:name](#artifacts-name) - [dependencies](#dependencies) + - [before_script and after_script](#before_script-and-after_script) - [Hidden jobs](#hidden-jobs) - [Special YAML features](#special-yaml-features) - [Anchors](#anchors) @@ -342,6 +343,8 @@ job_name: | dependencies | no | Define other builds that a build depends on so that you can pass artifacts between them| | artifacts | no | Define list build artifacts | | cache | no | Define list of files that should be cached between subsequent runs | +| before_script | no | Override a set of commands that are executed before build | +| after_script | no | Override a set of commands that are executed after build | ### script @@ -686,6 +689,23 @@ deploy: script: make deploy ``` +### before_script and after_script + +It's possible to overwrite globally defined `before_script` and `after_script`: + +```yaml +before_script +- global before script + +job: + before_script: + - execute this instead of global before script + script: + - my command + after_script: + - execute this after my script +``` + ## Hidden jobs >**Note:** |