Commit 3b2c5a85 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Touch it after builds were created, aligning with:

CreateCommitBuildsService
parent aa757288
...@@ -27,13 +27,13 @@ module Ci ...@@ -27,13 +27,13 @@ module Ci
end end
pipeline.save! pipeline.save!
pipeline.touch
unless pipeline.create_builds(current_user) unless pipeline.create_builds(current_user)
pipeline.errors.add(:base, 'No builds for this pipeline.') pipeline.errors.add(:base, 'No builds for this pipeline.')
end end
pipeline.save pipeline.save
pipeline.touch
pipeline pipeline
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment