diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-05-18 15:21:51 -0500 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-06-13 11:01:19 +0100 |
commit | aea4041ce96f18afea70da15af3cbe1be4fa1f94 (patch) | |
tree | 7d2fe32a2e20ed9cd7f80bf07aefa5bcb37e7bb7 /app/controllers | |
parent | 7a1b2e4f94e3e651d3264aa566a9056fe0f554e9 (diff) | |
download | gitlab-ce-aea4041ce96f18afea70da15af3cbe1be4fa1f94.tar.gz |
Allow to expire build artifacts
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/projects/builds_controller.rb | 6 |
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 |