提交 64e09a1b 编写于 作者: G Grzegorz Bizon

Fix pipeline status when allowed to fail jobs present

上级 bf57a7e8
......@@ -37,7 +37,9 @@ module HasStatus
end
def status
all.pluck(status_sql).first
all.pluck(status_sql).first.tap do |status|
return 'success' if status == 'skipped' && all.failed_but_allowed.any?
end
end
def started_at
......
......@@ -62,6 +62,10 @@ describe Ci::ProcessPipelineService, '#execute', :services do
fail_running_or_pending
expect(builds_statuses).to eq %w(failed pending)
fail_running_or_pending
expect(pipeline.reload).to be_success
end
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册