delete the config file first, so that even if the request doesn't fully complete, the job won't be resurrected.

git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@21575 71c3de6d-444a-0410-be80-ed276b4c234a
This commit is contained in:
kohsuke committed 2009-09-10 20:40:25 +00:00
1 parent 6cf4165a55
commit dfacf6eab5
1 file changed
+1
@@ -274,6 +274,7 @@ public abstract class AbstractItem extends Actionable implements Item, HttpDelet
* Does the real job of deleting the item.
*/
protected void performDelete() throws IOException, InterruptedException {
getConfigFile().delete();
Util.deleteRecursive(getRootDir());
}