summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-05-18 15:21:51 -0500
committerPhil Hughes <me@iamphill.com>2016-06-13 11:01:19 +0100
commitaea4041ce96f18afea70da15af3cbe1be4fa1f94 (patch)
tree7d2fe32a2e20ed9cd7f80bf07aefa5bcb37e7bb7 /app/controllers
parent7a1b2e4f94e3e651d3264aa566a9056fe0f554e9 (diff)
downloadgitlab-ce-aea4041ce96f18afea70da15af3cbe1be4fa1f94.tar.gz
Allow to expire build artifacts
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects/builds_controller.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/controllers/projects/builds_controller.rb b/app/controllers/projects/builds_controller.rb
index 14c82826342..514f1b507fe 100644
--- a/app/controllers/projects/builds_controller.rb
+++ b/app/controllers/projects/builds_controller.rb
@@ -78,6 +78,12 @@ class Projects::BuildsController < Projects::ApplicationController
end
end
+ def keep_artifacts
+ @build.keep_artifacts
+ redirect_to namespace_project_build_path(project.namespace, project, @build),
+ notice: "Artifacts will not be removed!"
+ end
+
private
def build