3

In some occasions a runtime error causes a Jenkins Workflow build to crash, but Jenkins still sees this as a running build. Aborting the job is not possible in de Jenkins Gui. How can I abort or delete such a build?

Jesse Glick
  • 24,539
  • 10
  • 90
  • 112
mipmip
  • 1,072
  • 1
  • 10
  • 24

3 Answers3

0

I restart jenkins. I'm not happy with it though.

0

You can disconnect a slave node even when it's running a build. Once you reconnect the slave, there should be no jobs running on it.

LeoLiu
  • 87
  • 5
  • And if the job is running on the master node? – mipmip Feb 26 '15 at 07:16
  • I read the below comment that the build still survives after restart on the master. You might have luck going into your Jenkins directory (which you can find under Manage Jenkins>Configure System), then go into the jenkins/jobs/[jobname]/builds/ directory, and try removing the build that's running manually. Both the directory and the link. – LeoLiu Feb 26 '15 at 18:33
  • I did try to remove the directory, maybe I forgot the link. I'll try this again. – mipmip Feb 26 '15 at 18:39
0

See JENKINS-25550 for the current workaround for this class of bug.

Jesse Glick
  • 24,539
  • 10
  • 90
  • 112