<%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %> <%@ taglib prefix="l" tagdir="/WEB-INF/tags/layout" %> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="forms" tagdir="/WEB-INF/tags/forms" %> <%@ page import="jetbrains.buildServer.swabra.HandleProvider" %> <%=HandleProvider.isHandlePresent()%> Build files cleanup: if (this.checked) { BS.Util.show($('swabra.strict.container')); BS.Util.show($('swabra.verbose.container')); BS.Util.show($('swabra.ignored.container')); } else { BS.Util.hide($('swabra.strict.container')); BS.Util.hide($('swabra.verbose.container')); BS.Util.hide($('swabra.ignored.container')); } BS.MultilineProperties.updateVisible(); At the build start inspect the checkout directory for files created, modified and deleted during previous build. Clean checkout directory: Ensure that at the build start the checkout directory corresponds to the sources in the repository, otherwise perform clean checkout. Paths to ignore: New line or comma separated paths which will be ignored while running build files cleanup. Support ant-style wildcards like dir/**/?*.jar. Locking processes: var selectedValue = this.options[this.selectedIndex].value; if (selectedValue == '') { BS.Util.hide($('swabra.processes.note')); BS.Util.hide($('swabra.processes.report.note')); BS.Util.hide($('swabra.processes.kill.note')); BS.Util.hide($('swabra.processes.handle.note')); BS.Util.hide($('swabra.download.handle.container')); } else { BS.Util.show($('swabra.processes.note')); BS.Util.show($('swabra.processes.handle.note')); BS.Util.show($('swabra.download.handle.container')); if (selectedValue == 'report') { BS.Util.show($('swabra.processes.report.note')); BS.Util.hide($('swabra.processes.kill.note')); } else if (selectedValue == 'kill') { BS.Util.hide($('swabra.processes.report.note')); BS.Util.show($('swabra.processes.kill.note')); } } BS.MultilineProperties.updateVisible(); <Do not detect> Report Kill Before the end of the build inspect the checkout directory for processes locking files in this directory. Report about such processes in the build log.
Report about such processes in the build log and kill them.
Note that handle.exe is required on agents.