diff options
-rw-r--r-- | app/models/ci/build.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/ci/build.rb b/app/models/ci/build.rb index 7d33838044b..debb7eeded7 100644 --- a/app/models/ci/build.rb +++ b/app/models/ci/build.rb @@ -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) |