diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-03-06 01:14:02 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2017-03-06 01:34:20 +0300 |
commit | 829cc80e1d9147721f6edc137c52ed91500c931e (patch) | |
tree | c161aeac1405f366a3e35336ee13bf837c2a38ae /app/services/projects/update_pages_service.rb | |
parent | 8a5557ce514fc5bd1a8e4e236713fd0910ce7e78 (diff) |
Delete artifacts for pages unless expiry date is specified
Diffstat (limited to 'app/services/projects/update_pages_service.rb')
-rw-r--r-- | app/services/projects/update_pages_service.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/services/projects/update_pages_service.rb b/app/services/projects/update_pages_service.rb index 2d42c4fc04a..523b9f41916 100644 --- a/app/services/projects/update_pages_service.rb +++ b/app/services/projects/update_pages_service.rb @@ -34,6 +34,8 @@ module Projects end rescue => e error(e.message) + ensure + build.erase_artifacts! unless build.has_expiring_artifacts? end private |