diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-05 14:48:50 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2018-01-05 14:48:50 +0100 |
commit | 05ddb259958c27506cb075342fae5a70cf8ce257 (patch) | |
tree | a562489376b3b425c4ca62c081143aed25357005 /app/models | |
parent | 099a59e8fd461a01b1b4f84583b46b4c7d6888e9 (diff) | |
download | gitlab-ce-05ddb259958c27506cb075342fae5a70cf8ce257.tar.gz |
Assign stage and pipeline to a status when importing
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/ci/build.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 83fe23606d1..fb5ae83ac7b 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -79,7 +79,7 @@ module Ci before_save :ensure_token before_destroy { unscoped_project } - after_create do |build| + after_create unless: :importing? do |build| run_after_commit { BuildHooksWorker.perform_async(build.id) } end |