diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-17 01:48:51 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 14:46:20 +0200 |
commit | e00da96c88314df79600e7848ae6fe7e4a29af2e (patch) | |
tree | 48d3da01b161442812fb83939f4cbeafdf9be7e3 /doc | |
parent | 3248c9fb56e5d5cb8980cb37effec1ee2f4f664a (diff) | |
download | gitlab-ce-e00da96c88314df79600e7848ae6fe7e4a29af2e.tar.gz |
Improve manual actions code and add model, service and feature tests
Manual actions are accessible from:
- Pipelines
- Builds
- Environments
- Deployments
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ci/yaml/README.md | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md index 50fa263f693..b421bbdec3f 100644 --- a/doc/ci/yaml/README.md +++ b/doc/ci/yaml/README.md @@ -485,6 +485,7 @@ failure. 1. `on_failure` - execute build only when at least one build from prior stages fails. 1. `always` - execute build regardless of the status of builds from prior stages. +1. `manual` - execute build manually. For example: @@ -516,6 +517,7 @@ deploy_job: stage: deploy script: - make deploy + when: manual cleanup_job: stage: cleanup @@ -527,7 +529,20 @@ cleanup_job: The above script will: 1. Execute `cleanup_build_job` only when `build_job` fails -2. Always execute `cleanup_job` as the last step in pipeline. +2. Always execute `cleanup_job` as the last step in pipeline +3. Allow you to manually execute `deploy_job` form GitLab + +#### Manual actions + +>**Note:** +Introduced in GitLab 8.10. + +Manual actions are special type of jobs that are not executed automatically in pipeline. +They need to be explicitly started by the user. +Manual actions can be started from pipelines, builds, environments and deployments views. +You can execute the same manual action multiple times. + +Example usage of manual actions is deployment, ex. promote a staging environment to production. ### environment |