Skip to content
Snippets Groups Projects
Commit e7cc554c authored by Kamil Trzcinski's avatar Kamil Trzcinski
Browse files

Fix retry and cancel URLs

parent 4bf69b0b
No related branches found
No related tags found
1 merge request!1530Implement Commit Status API
Pipeline #
Loading
Loading
@@ -219,12 +219,14 @@ module Ci
 
def cancel_url
if active?
Gitlab::Application.routes.url_helpers.
cancel_namespace_project_build_path(gl_project.namespace, gl_project, self, return_to: request.original_url)
end
end
 
def retry_url
if commands.present?
Gitlab::Application.routes.url_helpers.
cancel_namespace_project_build_path(gl_project.namespace, gl_project, self, return_to: request.original_url)
end
end
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment