Do not show delete build button if build is marked to be kept
@@ -26,8 +26,8 @@ THE SOFTWARE.
Displays the link to delete the build.
-->
<?jelly escape-by-default='true'?>
-<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
- <j:if test="${!it.building}">
+<j:jelly xmlns:j="jelly:core" xmlns:l="/lib/layout">
+ <j:if test="${!it.building and !it.keepLog}">
<l:task href="${buildUrl.baseUrl}/confirmDelete" icon="icon-edit-delete icon-md" permission="${it.DELETE}" title="${%delete.build(it.displayName)}"/>
</j:if>
</j:jelly>
