August 05, 2021
Go to “Manage Jenkins” > “Script Console” and run a script:
Jenkins.instance.getItemByFullName("JobName")
.getBuildByNumber(JobNumber)
.finish(hudson.model.Result.ABORTED, new java.io.IOException("Aborting build"));
Go to “Manage Jenkins” > “Script Console” and run a script:
Jenkins.instance.queue.clear()
Jenkins.instance.getAllItems(AbstractProject.class).each {it ->
it.getBuilds().each {
if (it.isBuilding()) {
if(it.getDisplayName().contains("JobName")) {
println(it.getFullDisplayName());
it.doStop()
}
}
}
}
wrapper script does not seem to be touching the log file ~~
(JENKINS-48300: if on an extremely laggy filesystem, consider -Dorg.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEATCHECKINTERVAL=86400)
위와 같은 에러가 발생 할때, 아래 방법을 사용.
script {
System.setProperty("org.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL", "3800");
}
pipeline {
// todo
}
System.setProperty("org.jenkinsci.plugins.durabletask.BourneShellScript.HEARTBEAT_CHECK_INTERVAL", "3800");