BigW Consortium Gitlab

Commit 431792f7 by Lin Jen-Shin

Revert "We don't have to touch it because builds would touch pipeline anyway"

This reverts commit 3691a391.
parent 94b3d33d
......@@ -27,6 +27,7 @@ module Ci
end
pipeline.save!
pipeline.touch
unless pipeline.create_builds(current_user)
pipeline.errors.add(:base, 'No builds for this pipeline.')
......
......@@ -53,7 +53,17 @@ class CreateCommitBuildsService
return false
end
save_pipeline!
end
private
##
# Create a new pipeline and touch object to calculate status
#
def save_pipeline!
@pipeline.save!
@pipeline.touch
@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