[jenkins] How to stop an unstoppable zombie job on Jenkins without restarting the server?

Here is how I fixed this issue in version 2.100 with Blue Ocean

  • The only plugins I have installed are for bitbucket.
  • I only have a single node.

ssh into my Jenkins box
cd ~/.jenkins (where I keep jenkins)
cd job/<job_name>/branches/<problem_branch_name>/builds
rm -rf <build_number>

After this, you can optionally change the number in nextBuildNumber (I did this)

Finally, I restarted jenkins (brew services restart jenkins) This step will obviously be different depending how you manage and install Jenkins.