diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-09 12:47:11 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-02-13 15:11:21 +0100 |
commit | ffcf3c68586b5e4a977a3c92cd1b3f8b1871c322 (patch) | |
tree | 7b243e742f1eeb1589e4b7ffb3971ed88de51b34 /app/models/commit_status.rb | |
parent | 008f22cd820a5bf9e8ff9a68550c9550463d3279 (diff) | |
download | gitlab-ce-ffcf3c68586b5e4a977a3c92cd1b3f8b1871c322.tar.gz |
Skip job only when canceling the pipeline it belongs to
Diffstat (limited to 'app/models/commit_status.rb')
-rw-r--r-- | app/models/commit_status.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/commit_status.rb b/app/models/commit_status.rb index 4a064644d64..9547c57b2ae 100644 --- a/app/models/commit_status.rb +++ b/app/models/commit_status.rb @@ -65,8 +65,7 @@ class CommitStatus < ActiveRecord::Base end event :cancel do - transition [:created] => :skipped - transition [:pending, :running] => :canceled + transition [:created, :pending, :running] => :canceled end before_transition created: [:pending, :running] do |commit_status| |