-
Bug
-
Resolution: Duplicate
-
Critical
-
None
-
Jenkins 2.332.2
I am running my job inside an ECS agent. So there is nothing to clean. In the past, I removed "Clean up after checkout" and "Clean up before checkout." And my job ran inside the ECS agent without issue. Last night, my code attempted to run and it tried to clean the workspace. Nothing about the code change. Why is it trying to clean when I told it not to? What changed in the background? Can I do a "force checkout" without a clean?
Obtained Jenkinsfiles/Jenkinsfile-DOD-FortifyDocker from 9999b547162b80dd2a3badb67d7cf4fb0229f60f[Pipeline] Start of Pipeline[Pipeline] nodeStill waiting to schedule task
'ECSAgent-ecsAgent-xmw0r' is offline
Running on ECSAgent-ecsAgent-xmw0r in /home/jenkins/workspace/eportBuilder_DOD-Fortify-MB_scqc[Pipeline] {[Pipeline] stage[Pipeline]
[Pipeline] // stage[Pipeline] withEnv[Pipeline] {[Pipeline] withEnv[Pipeline] {[Pipeline] stage[Pipeline] { (Fortify Scan) > /usr/bin/git rev-parse --verify HEAD # timeout=10
Resetting working tree
> /usr/bin/git reset --hard # timeout=10
> /usr/bin/git clean -fdx # timeout=10[Pipeline] nodeRunning on Jenkins in /home/tomcat/.jenkins/workspace/eportBuilder_DOD-Fortify-MB_scqc[Pipeline] {[Pipeline] checkoutusing credential a5b288c3-b475-4957-b8cb-1a761d6fa7a5
Cloning the remote Git repository
Cloning with configured refspecs honoured and without tags
Cloning repository ...
ERROR: Failed to clean the workspace
jenkins.util.io.CompositeIOException: Unable to delete '/home/tomcat/.jenkins/workspace/eportBuilder_DOD-Fortify-MB_scqc'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. (Discarded 778 additional exceptions)
at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:87)
at hudson.Util.deleteContentsRecursive(Util.java:285)
- duplicates
-
JENKINS-22795 git plugin cleans workspace on initial clone
- Open