cyborg
cyborg

Reputation: 5748

Hudson - job is stuck, how to kill it?

I have a job running under Hudson that has not progressed from "Started by user anonymous". How can I stop it? I tried restarting the Hudson server but it just resumed the job on startup.

It can't be killed by the normal cancel build button.

Thanks.

Upvotes: 6

Views: 8580

Answers (3)

Dan
Dan

Reputation: 11

I had a similar issue where the job was stuck at its early stage. I did the following and got it to work. Not sure what exactly did the trick.

  1. ssh to the build node, which the job is attached to and clean its workspace
  2. sudo /etc/init.d/hudson restart to restart the service on the Hudson server.
  3. re-enter the source code credentials
  4. start the build job

Upvotes: 1

cyborg
cyborg

Reputation: 5748

Hudson was waiting for SVN to respond - SVN was waiting for the permission for my id to use the repository. Once this was there Hudson started working again.

I would presume that in this instance there would have been an SVN process I would have needed to kill in order to get Hudson to respond again.

Upvotes: 1

dbrown0708
dbrown0708

Reputation: 4764

Check your build process to make sure that it's not waiting for interactive input. For example, if you run over ssh, and the server isn't in the known hosts file, maybe it's waiting for you to authorize the fingerprint. Likewise, if you haven't setup automatic key exchange, maybe it's waiting for you to enter a password.

Upvotes: 2

Related Questions