user1164061
user1164061

Reputation: 4342

Jenkins - unable to delete builds from build history

I was deleting some old builds from the build history in Jenkins. I was successful in deleting some. But all of a sudden I got a "Status Code: 500 Exception:Stacktrace: java.io.IOException: Unable to delete xx/builds/.2012-03-02_15-45-42/.nfs00000000000ac05d0002d96b"

Why would this happen? How do I delete these builds?

Upvotes: 0

Views: 3732

Answers (3)

Constantine
Constantine

Reputation: 699

I had this problem with deleting the latest build. I just restarted jenkins: "jenkins_url"/restart

and it helped.

Upvotes: 2

ldav1s
ldav1s

Reputation: 16305

Why would this happen?

Looks like an NFS problem.

How do I delete these builds?

I'd try deleting it again.

Upvotes: 1

gareth_bowles
gareth_bowles

Reputation: 21130

Looks like your Jenkins build files are stored on a network file system which has snapshotting enabled. I ran into this problem on my Jenkins installation too; you should find that the job was either actually deleted successfully despite the error, or that you can retry the deletion and it will work the second time.

I'd recommend that you disable snapshotting and using some other method such as a regular rsync to back up your Jenkins build files.

Upvotes: 1

Related Questions