BigW Consortium Gitlab

Commit 3691a391 by Lin Jen-Shin

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

parent db123d29
......@@ -27,7 +27,6 @@ module Ci
end
pipeline.save!
pipeline.touch
unless pipeline.create_builds(current_user)
pipeline.errors.add(:base, 'No builds for this pipeline.')
......
......@@ -53,17 +53,7 @@ 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