diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-16 18:39:58 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-07-18 14:44:21 +0200 |
commit | 7d0fe1f04ed285e7e5cf825a305114b3e981c2f8 (patch) | |
tree | 7ad00009bb144bbe76534310175734e6885be619 /lib | |
parent | 4e898b9b5e1a782d226212ba6227a8ddcb5177ae (diff) | |
download | gitlab-ce-7d0fe1f04ed285e7e5cf825a305114b3e981c2f8.tar.gz |
Add implementation of manual actions
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ci/gitlab_ci_yaml_processor.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ci/gitlab_ci_yaml_processor.rb b/lib/ci/gitlab_ci_yaml_processor.rb index a48dc542b14..41449d720b3 100644 --- a/lib/ci/gitlab_ci_yaml_processor.rb +++ b/lib/ci/gitlab_ci_yaml_processor.rb @@ -194,8 +194,8 @@ module Ci raise ValidationError, "#{name} job: allow_failure parameter should be an boolean" end - if job[:when] && !job[:when].in?(%w[on_success on_failure always]) - raise ValidationError, "#{name} job: when parameter should be on_success, on_failure or always" + if job[:when] && !job[:when].in?(%w[on_success on_failure always manual]) + raise ValidationError, "#{name} job: when parameter should be on_success, on_failure, always or manual" end if job[:environment] && !validate_environment(job[:environment]) |