C:\Program Files (x86)\Jenkins\workspace\Project3X>exit 0 [Gradle] - Launching build. [Project3X] $ cmd.exe /C "gradle.bat clean test && exit %%ERRORLEVEL%%" Starting a Gradle Daemon, 80 busy and 1 incompatible and 10 stopped Daemons could not be reused, use --status for details : *clean* FAILED
FAILURE: Build failed with an exception.
* What went wrong: Execution failed for task ':clean'. > Unable to delete directory: C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources
* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at [https://help.gradle.org|https://help.gradle.org/] BUILD FAILED in 8s 1 actionable task: 1 executed Build step 'Invoke Gradle script' changed build result to FAILURE Build step 'Invoke Gradle script' marked build as failure
C:\Program Files (x86)\Jenkins\workspace\Project3X>exit 0 [Gradle] - Launching build. [Project3X] $ cmd.exe /C "gradle.bat clean test && exit %%ERRORLEVEL%%" Starting a Gradle Daemon, 80 busy and 1 incompatible and 10 stopped Daemons could not be reused, use --status for details : *clean* FAILED
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':clean'. > Unable to delete directory: C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources
Build step 'Invoke Gradle script' changed build result to FAILURE
* Try: Run with
--stacktrace option to get the stack trace. Run with --info or --debug option-------------------------------------------
2) When I try to wipe out the workspace manually in Jenkins, I get more log output
Also: java. Runnio.file.AccessDeniedException: C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources\Project3XOutput_202004201748.xlsx at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileAttributeViews$Dos.updateAttributes(Unknown Source) at sun.nio.fs.WindowsFileAttributeViews$Dos.setReadOnly(Unknown Source) at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:298) at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:259) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:239) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96) Also: Also: java.nio.file.DirectoryNotEmptyException: C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237) Also: java.nio.file.DirectoryNotEmptyException: C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241) jenkins.util.io.CompositeIOException: Unable to remove directory C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources with --scan directory contents: [C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources\Project3XOutput_202004201748.xlsx] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:250) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96) Also: Also: java.nio.file.DirectoryNotEmptyException: C:\Program Files (x86)\Jenkins\workspace\Project3X\build at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237) Also: java.nio.file.DirectoryNotEmptyException: C:\Program Files (x86)\Jenkins\workspace\Project3X\build at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241) jenkins.util.io.CompositeIOException: Unable to get full insights remove directory C:\Program Files (x86)\Jenkins\workspace\Project3X\build with directory contents: [C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:250) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205)
* Get more help at
jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96) Also: Also: java.nio.file.DirectoryNotEmptyException: C:\Program Files (x86)\Jenkins\workspace\Project3X at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237) Also: java.nio.file.DirectoryNotEmptyException: C:\Program Files (x86)\Jenkins\workspace\Project3X at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241) jenkins.util.io.CompositeIOException: Unable to remove directory C:\Program Files (x86)\Jenkins\workspace\Project3X with directory contents:[httpsC://help\Program Files (x86)\Jenkins\workspace\Project3X\build] at jenkins.gradleutil.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:250) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96) jenkins.util.io.CompositeIOException: Unable to delete 'C:\Program Files (x86)\Jenkins\workspace\Project3X'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:99) at hudson.Util.deleteRecursive(Util.java:294) at hudson.FilePath$DeleteRecursive.invoke(FilePath.java:1271) at hudson.FilePath$DeleteRecursive.invoke(FilePath.java:1267) at hudson.FilePath.act(FilePath.java:1075) at hudson.FilePath.act(FilePath.java:1058) at hudson.FilePath.deleteRecursive(FilePath.java:1265) at hudson.model.AbstractProject.doDoWipeOutWorkspace(AbstractProject.java:1863) at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source) atorg|https.kohsuke.stapler.Function$MethodFunction.invoke(Function.java://help396) at org.gradlekohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408) atorg/].kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77) BUILD FAILED in 8s at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145) at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617) at hudson.util.PluginServletFilter$1 actionable task.doFilter(PluginServletFilter.java:154) at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76) at hudson.util.PluginServletFilter$ 1 executed.doFilter(PluginServletFilter.java:151) Build step 'Invoke Gradle script' changed build result to FAILURE at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128) Build step 'Invoke Gradle script' marked build as failure at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:157) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:153) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84) at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:118) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at jenkins.security.BasicHeaderProcessor.doFilter(BasicHeaderProcessor.java:93) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249) at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:67) at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87) at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:90) at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:171) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at org.kohsuke.stapler.compression.CompressionFilter.doFilter(CompressionFilter.java:49) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:82) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at org.kohsuke.stapler.DiagnosticThreadNameFilter.doFilter(DiagnosticThreadNameFilter.java:30) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at jenkins.security.SuspiciousRequestFilter.doFilter(SuspiciousRequestFilter.java:36) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:566) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1610) at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1300) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1580) at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1215) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) at org.eclipse.jetty.server.Server.handle(Server.java:500) at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:273) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171) at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129) at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:375) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) at java.lang.Thread.run(Unknown Source)
C:\Program Files (x86)\Jenkins\workspace\Project3X>exit 0 [Gradle] - Launching build. [Project3X] $ cmd.exe /C "gradle.bat clean test && exit %%ERRORLEVEL%%" Starting a Gradle Daemon, 80 busy and 1 incompatible and 10 stopped Daemons could not be reused, use --status for details : *clean* FAILED
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':clean'. > Unable to delete directory: C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources Build step 'Invoke Gradle script' changed build result to FAILURE
-------------------------------------------------
2) When I try to wipe out the workspace manually in Jenkins, I get
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileAttributeViews$Dos.updateAttributes(Unknown Source) at sun.nio.fs.WindowsFileAttributeViews$Dos.setReadOnly(Unknown Source) at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:298) at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:259) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:239) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241)
jenkins.util.io.CompositeIOException: Unable to remove directory C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources with directory contents: [C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources\Project3XOutput_202004201748.xlsx]
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:250) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241)
*jenkins.util.io.CompositeIOException: Unable to remove directory C:\Program Files (x86)\Jenkins\workspace\Project3X\build with directory contents: [C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources]*
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:250) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96) Also: Also: * java.nio.file.DirectoryNotEmptyException: C:\Program Files (x86)\Jenkins\workspace\Project3X*
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241)
jenkins.util.io.CompositeIOException: Unable to remove directory C:\Program Files (x86)\Jenkins\workspace\Project3X with directory contents: [C:\Program Files (x86)\Jenkins\workspace\Project3X\build]
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:250) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96) jenkins.util.io.CompositeIOException: Unable to delete 'C:\Program Files (x86)\Jenkins\workspace\Project3X'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:99) at hudson.Util.deleteRecursive(Util.java:294) at hudson.FilePath$DeleteRecursive.invoke(FilePath.java:1271) at hudson.FilePath$DeleteRecursive.invoke(FilePath.java:1267) at hudson.FilePath.act(FilePath.java:1075) at hudson.FilePath.act(FilePath.java:1058) at hudson.FilePath.deleteRecursive(FilePath.java:1265) at hudson.model.AbstractProject.doDoWipeOutWorkspace(AbstractProject.java:1863) at java.lang.invoke.MethodHandle.invokeWithArguments(Unknown Source)
at org.kohsuke.stapler.Function$MethodFunction.invoke(Function.java:396) at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:408) at org.kohsuke.stapler.interceptor.RequirePOST$Processor.invoke(RequirePOST.java:77)
at org.kohsuke.stapler.PreInvokeInterceptedFunction.invoke(PreInvokeInterceptedFunction.java:26) at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:212) at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:145) at org.kohsuke.stapler.MetaClass$11.doDispatch(MetaClass.java:535) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.MetaClass$4.doDispatch(MetaClass.java:280) at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:58) at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:747) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:878) at org.kohsuke.stapler.Stapler.invoke(Stapler.java:676) at org.kohsuke.stapler.Stapler.service(Stapler.java:238) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:154) at jenkins.security.ResourceDomainFilter.doFilter(ResourceDomainFilter.java:76) at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:151) at jenkins.telemetry.impl.UserLanguages$AcceptLanguageFilter.doFilter(UserLanguages.java:128)
irr.hyd@gmail.com (JIRA)
unread,
Apr 20, 2020, 9:45:03 PM4/20/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
This is a freestyle project, that runs in windows.
My windows Jenkins workspace folder has full access(read/write/modify etc). When I first run the build, I am able to push & attach the file successfully to confluence from jenkins. The file(say *Project3XOutput_202004201748*) is generated in the build\resources folder. My output file has timestamp embedded in the name.
From the next build onwards, I encounter an issue with the deleting or clearing the workspace because of the file *Project3XOutput_202004201748*.
I couldnt able to delete the file *Project3XOutput_202004201748* from the Jenkins machine itself. The file will automatically re-appear after refresh even when I made a shift+delete from the Jenkins machine.
The only way I can resolve this is to stop the Jenkins server and restart the Jenkins server. After a restart, the first build ran was working fine, but subsequent builds result in the same cleaning issue of the workspace.
C:\Program Files (x86)\Jenkins\workspace\Project3X>exit 0 [Gradle] - Launching build. [Project3X] $ cmd.exe /C "gradle.bat clean test && exit %%ERRORLEVEL%%" Starting a Gradle Daemon, 80 busy and 1 incompatible and 10 stopped Daemons could not be reused, use --status for details : *clean* FAILED
FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':clean'. > Unable to delete directory: C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources Build step 'Invoke Gradle script' changed build result to FAILURE
-------------------------------------------------
2) When I try to wipe out the workspace manually in Jenkins, I get
at sun.nio.fs.WindowsException.translateToIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source) at sun.nio.fs.WindowsFileAttributeViews$Dos.updateAttributes(Unknown Source) at sun.nio.fs.WindowsFileAttributeViews$Dos.setReadOnly(Unknown Source) at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:298) at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:259) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:239) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241) jenkins.util.io.CompositeIOException: Unable to remove directory C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources with directory contents: [C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources\Project3XOutput_202004201748.xlsx] at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:250) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:241)
*jenkins.util.io.CompositeIOException: Unable to remove directory C:\Program Files (x86)\Jenkins\workspace\Project3X\build with directory contents: [C:\Program Files (x86)\Jenkins\workspace\Project3X\build\resources]*
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:250) at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:205) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:216) at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:226) at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:215) at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at sun.nio.fs.WindowsFileSystemProvider.implDelete(Unknown Source) at sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source) at java.nio.file.Files.deleteIfExists(Unknown Source) at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:237)
This is a freestyle project, that runs in windows Jenkins server.
My windows Jenkins workspace folder has full access(read/write/modify etc). When I first run the build, I am able to push & attach the file successfully to confluence from jenkins. The file(say *Project3XOutput_202004201748*) is generated in the build\resources folder. My output file has timestamp embedded in the name.
FromBut from the next build onwards, I encounter an issue with the deleting or clearing the workspace because of the file *Project3XOutput_202004201748*.
irr.hyd@gmail.com (JIRA)
unread,
Apr 20, 2020, 10:00:04 PM4/20/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
This is a freestyle project, that runs in windows Jenkins server.
My windows Jenkins workspace folder has full access(read/write/modify etc). When I first run the build, I am able to push & attach the file successfully to confluence from jenkins. The file(say *Project3XOutput_202004201748*) is generated in the build\resources folder. My output file has timestamp embedded in the name.
But from the next build onwards, I encounter an issue with the deleting or clearing the workspace because of the file *Project3XOutput_202004201748*.
I couldnt able to delete the file *Project3XOutput_202004201748* from the * Jenkins server machine* itself. The file will automatically re-appear after refresh even when I made a shift+delete from the Jenkins machine.
irr.hyd@gmail.com (JIRA)
unread,
Apr 20, 2020, 10:00:04 PM4/20/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
This is a freestyle project, that runs in windows Jenkins server.
My windows Jenkins workspace folder has full access(read/write/modify etc). When I first run the build, I am able to push & attach the file successfully to confluence from jenkins. The file(say *Project3XOutput_202004201748*) is generated in the build\resources folder. My output file has timestamp embedded in the name.
But from the next build onwards, I encounter an issue with the deleting or clearing the workspace because of the file *Project3XOutput_202004201748*.
I couldnt able to delete the file *Project3XOutput_202004201748* from the *Jenkins server machine* itself. The file will automatically re-appearappears after refresh even when I made a shift+delete from the Jenkins machine.
irr.hyd@gmail.com (JIRA)
unread,
Apr 20, 2020, 10:02:03 PM4/20/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Hello All, Hope you guys are doing great. Can you please help me on the following issue with a
This is a freestyle project, that runs in windows Jenkins server.
My windows Jenkins workspace folder has full access(read/write/modify etc). When I first run the build, I am able to push & attach the file successfully to confluence from jenkins. The file(say *Project3XOutput_202004201748*) is generated in the build\resources folder. My output file has timestamp embedded in the name.
But from the next build onwards, I encounter an issue with the deleting or clearing the workspace because of the file *Project3XOutput_202004201748*.
I couldnt delete the file *Project3XOutput_202004201748* from the *Jenkins server machine* itself. The file automatically re-appears after refresh even when I made a shift+delete from the Jenkins machine.
irr.hyd@gmail.com (JIRA)
unread,
Apr 21, 2020, 12:05:02 AM4/21/20
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message