Skip to content
Snippets Groups Projects
Commit 31210cb6 authored by Stan Hu's avatar Stan Hu
Browse files

Handle an undefined ci_id: this was keeping projects from being destroyed

Closes #15005
parent 8f094531
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -285,6 +285,8 @@ module Ci
# This method returns old path to artifacts only if it already exists.
#
def artifacts_path
return unless project
old = File.join(created_at.utc.strftime('%Y_%m'),
project.ci_id.to_s,
id.to_s)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment