After Jenkins restart we found few nodes with busy executor. The job that occupies executor have striped white blue loading bar and does not link to any specific build (in fact no build is ongoing for that job). So we don't have id or ui way to abort it, you can see it here:
How the job looks on jenkins node
Now, I wanted to find a way to kill it without really looking into cause of the issue, maybe its related to Jenkins pipeline job wont finish in the UI - but in our case we don't have underlying finished job. We tried to kill it by:
- Restarting node
- Killing any jenkins/agent threads on node - it just caused node to disconnect
- Locating it somehow via ui
None of above worked, the ghost job was still there. Any clues how to kill such job or at least point to it without id ?
Edit: I found similar thread How to stop an unstoppable zombie job on Jenkins without restarting the server? with plenty answers though different solution that didn't work for me