To run constantly
first check what value is set:
run in your browser
yourUrlJenkins/manage/script
put and run
org.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL
after
Create a init.groovy.d folder
in Jenkins home and place a groovy file in it for example HEARTBEAT_CHECK_INTERVAL.groovy
add in your file
System.setProperty("org.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL", "300")
restart Jenkins:
yourUrlJenkins/safeRestart
push "yes"
after, you should check what value is set again and voila: