*/
public HttpResponse doDoWipeOutWorkspace() throws IOException, ServletException, InterruptedException {
checkPermission(Functions.isWipeOutPermissionEnabled() ? WIPEOUT : BUILD);
try {
if (cleanWorkspace()) {
return new HttpRedirect(".");
} else {
return new ForwardToView(this,"wipeOutWorkspaceBlocked.jelly");
}
} catch (IOException e) {
ForwardToView resp = new ForwardToView(this, "error.jelly");