How to graceful remove Jenkins stuck executor when:
However, the item still show in Build Executor Status as below
got java.lang.NullPointerException
via WorkflowRun.finish
even the build isn't exist anymore, but Executor.isBusy()
and Executor.isActive()
are all true
.
hudson.model.Executor
details:
And SubTask.isContinued()
also shows true
as well.
SubTask
( org.jenkinsci.plugins.workflow.support.steps.ExecutorStepExecution.PlaceholderTask
) details:
algith, it can be simply "force removed" by kill the executor via:
jenkins.model.Jenkins.instance
.computers.collect { c -> c.executors }
.collectMany { it.findAll{ it.isBusy() } }
.each { it.interrupt() }
execute in your https://<jenkins.domain.com>/script