Started by remote host 127.0.0.1 Building in workspace C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace [WS-CLEANUP] Deleting project workspace... ERROR: [WS-CLEANUP] Cannot delete workspace: C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace -> C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace_ws-cleanup_1531512476552 ERROR: Cannot delete workspace: C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace -> C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace_ws-cleanup_1531512476552
In addition, Tomcat prints this stack trace:
13-Jul-2018 15:07:56.552 SEVERE [Executor #0 for master : executing Taurus #62] hudson.plugins.ws_cleanup.PreBuildCleanup.preCheckout Cannot delete workspace
java.nio.file.AccessDeniedException: C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace -> C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace_ws-cleanup_1531512476552
at sun.nio.fs.WindowsException.translateToIOException(WindowsException.java:83)
at sun.nio.fs.WindowsException.rethrowAsIOException(WindowsException.java:97)
at sun.nio.fs.WindowsFileCopy.move(WindowsFileCopy.java:387)
at sun.nio.fs.WindowsFileSystemProvider.move(WindowsFileSystemProvider.java:287)
at java.nio.file.Files.move(Files.java:1395)
at hudson.FilePath$28.invoke(FilePath.java:2085)
at hudson.FilePath$28.invoke(FilePath.java:2082)
at hudson.FilePath.act(FilePath.java:1047)
at hudson.FilePath.act(FilePath.java:1025)
at hudson.FilePath.renameTo(FilePath.java:2082)
at hudson.plugins.ws_cleanup.Wipeout.perform(Wipeout.java:63)
at hudson.plugins.ws_cleanup.PreBuildCleanup.preCheckout(PreBuildCleanup.java:94)
at jenkins.scm.SCMCheckoutStrategy.preCheckout(SCMCheckoutStrategy.java:76)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:498)
at hudson.model.Run.execute(Run.java:1794)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Jenkins is running under Tomcat started by me, so I can't understand why there could be an AccessDeniedException. The Jenkins workspace is under my home directory.
I get the same error whether I try to delete the workspace at the start or end of my job.
thanks
John
All,I have Jenkins 2.121.1.I get this error when my job tries to delete the workspace:Started by remote host 127.0.0.1 Building in workspace C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace [WS-CLEANUP] Deleting project workspace... ERROR: [WS-CLEANUP] Cannot delete workspace: C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace -> C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace_ws-cleanup_1531512476552 ERROR: Cannot delete workspace: C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace -> C:\Users\John.E.Gregg\.jenkins\jobs\Taurus\workspace_ws-cleanup_1531512476552
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/341bface-8864-4cbf-bdd6-5cb89a08dc60%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.