Commit 4e80de42 authored by Jose Ivan Vargas's avatar Jose Ivan Vargas

Merge branch 'fix-retry-job-button-422' into 'master'

Remove retry icon on failed job if pipeline is a merge pipeline

See merge request gitlab-org/gitlab!42495
parents 27278244 9a2f4084
......@@ -68,7 +68,7 @@
%td.responsive-table-cell.build-failure{ data: { column: _('Failure')} }
= build.present.callout_failure_message
%td.responsive-table-cell.build-actions
- if can?(current_user, :update_build, job)
- if can?(current_user, :update_build, job) && job.retryable?
= link_to retry_project_job_path(build.project, build, return_to: request.original_url), method: :post, title: _('Retry'), class: 'btn btn-build gl-button btn-icon btn-default' do
= sprite_icon('repeat', css_class: 'gl-icon')
- if can?(current_user, :read_build, job)
......
---
title: Remove retry icon on failed job if merge pipeline
merge_request: 42495
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment