pasupuleti2 created the topic: Jenkins Workspace Issue
Most of our jobs which are running on the Windows systems are failing due to issues in “deleting the workspace”. Our Jenkins working on Virtual machine. We have enough space to store Jenkins logs
ERROR::
{code}
[EnvInject] – Loading node environment variables.
Building on master in workspace D:\Jenkins\workspace\IntelliLink Develop – Bitbucket
> git.exe rev-parse –is-inside-work-tree # timeout=10
ERROR: Workspace has a .git repository, but it appears to be corrupt.
hudson.plugins.git.GitException: Command “git.exe rev-parse –is-inside-work-tree” returned status code 128:
stdout:
stderr: fatal: Not a git repository (or any of the parent directories): .git
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1407)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1383)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1379)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1093)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommand(CliGitAPIImpl.java:1103)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.hasGitRepo(CliGitAPIImpl.java:181)
at hudson.plugins.git.GitAPI.hasGitRepo(GitAPI.java:186)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:842)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1740)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Cloning the remote Git repository
Cloning repository bitbucket.org/sw/ddev-intellilink.git
ERROR: Failed to clean the workspace
java.nio.file.AccessDeniedException: D:\Jenkins\workspace\IntelliLink Develop – Bitbucket\.git\objects\pack\pack-1b0af023ecbe069724e34732bf47d46ae3207ba0.idx
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.WindowsFileSystemProvider.implDelete(Unknown Source)
at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
at java.nio.file.Files.delete(Unknown Source)
at sun.reflect.GeneratedMethodAccessor2431.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at hudson.Util.deleteFile(Util.java:247)
at hudson.Util.deleteRecursive(Util.java:310)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:379)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:857)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1740)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
ERROR: Error cloning remote repo ‘origin’
hudson.plugins.git.GitException: Failed to delete workspace
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:382)
at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:857)
at hudson.plugins.git.GitSCM.checkout(GitSCM.java:890)
at hudson.model.AbstractProject.checkout(AbstractProject.java:1253)
at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622)
at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528)
at hudson.model.Run.execute(Run.java:1740)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:89)
at hudson.model.Executor.run(Executor.java:240)
Caused by: java.nio.file.AccessDeniedException: D:\Jenkins\workspace\IntelliLink Develop – Bitbucket\.git\objects\pack\pack-1b0af023ecbe069724e34732bf47d46ae3207ba0.idx
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.WindowsFileSystemProvider.implDelete(Unknown Source)
at sun.nio.fs.AbstractFileSystemProvider.delete(Unknown Source)
at java.nio.file.Files.delete(Unknown Source)
at sun.reflect.GeneratedMethodAccessor2431.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at hudson.Util.deleteFile(Util.java:247)
at hudson.Util.deleteRecursive(Util.java:310)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at hudson.Util.deleteRecursive(Util.java:301)
at hudson.Util.deleteContentsRecursive(Util.java:212)
at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$2.execute(CliGitAPIImpl.java:379)
… 10 more
ERROR: null
Performing Post build task…
Could not match :Test Run : False
Logical operation result is FALSE
Skipping script : cd “%WORKSPACE%/Bin”
wzzip -p -r DotCoverResults.zip DotCover
cd “%WORKSPACE%”
wzzip TestResults.trx.zip “TestResults.trx”
END OF POST BUILD TASK : 0
[htmlpublisher] Archiving HTML reports…
[htmlpublisher] Archiving at BUILD level D:\Jenkins\workspace\IntelliLink Develop – Bitbucket\Bin\DotCover to D:\Jenkins\jobs\IntelliLink Develop – Bitbucket\builds\2015-08-12_11-03-04\htmlreports\DotCover_Results
Processing tests results in file(s) TestResults.trx
TestResults.trx
Recording fingerprints
Email was triggered for: Always
Sending email for trigger: Always
Request made to compress build log
Sending email to:
Finished: FAILURE
{code}
But we need permanent solution for this , could you please support us here?
rajeshkumar replied the topic: Jenkins Workspace Issue
Please try this plugins..
Name – Workspace Cleanup Plugin
wiki.jenkins-ci.org/display/JENKINS/Workspace+Cleanup+Plugin
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn
- Installing Jupyter: Get up and running on your computer - November 2, 2024
- An Introduction of SymOps by SymOps.com - October 30, 2024
- Introduction to System Operations (SymOps) - October 30, 2024