提交 3691a391 编写于 作者: L Lin Jen-Shin

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册