Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-16620

Windows Elastic agents fail to remove .git directory and cause build failures

      Steps to reproduce

      1. Create a new plan that has a single task to check out a Git repository.
      2. In the Source Code Checkout task, tick "Force Clean Build".
      3. In the Miscellaneous tab of the job, tick "Clean working directory after each build".
      4. Start a Windows elastic Bamboo agent and run a couple of builds.

      Expected results

      All the builds check out the code successfully and subsequently clean up the working directory.

      Actual results

      The first build will pass, but an error will appear in the Bamboo error log:

      Could not remove working directory for plan 'TEST-BUIL-JOB1': C:\build\TEST-BUIL-JOB1\.git

      java.nio.file.DirectoryNotEmptyException: C:\build\TEST-BUIL-JOB1\.git
      	at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:266)
      	at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
      	at java.nio.file.Files.delete(Files.java:1126)
      	at com.atlassian.bamboo.utils.BambooPathUtils.deleteNoThrow(BambooPathUtils.java:158)
      	at com.atlassian.bamboo.utils.BambooPathUtils.access$000(BambooPathUtils.java:28)
      	at com.atlassian.bamboo.utils.BambooPathUtils$1.postVisitDirectory(BambooPathUtils.java:97)
      	at com.atlassian.bamboo.utils.BambooPathUtils$1.postVisitDirectory(BambooPathUtils.java:74)
      	at java.nio.file.Files.walkFileTree(Files.java:2688)
      	at java.nio.file.Files.walkFileTree(Files.java:2742)
      	at com.atlassian.bamboo.utils.BambooPathUtils.cleanDirectory(BambooPathUtils.java:103)
      	at com.atlassian.bamboo.util.BambooFileUtils.cleanDirectory(BambooFileUtils.java:770)
      	at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.cleanWorkingDirectory(ExecuteBuildTask.java:129)
      	at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:98)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123)
      	at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118)
      	at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      	at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      	at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      	at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      	at java.lang.Thread.run(Thread.java:745)
      

      Subsequent builds will all fail with the error:

      Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
      Build always requires a clean checkout
      Cleaning build directory 'C:\build-dir\TEST-BUIL-JOB1'
      Unable to clean source directory 'C:\build-dir\TEST-BUIL-JOB1' C:\build-dir\TEST-BUIL-JOB1\.git
      Build always requires a clean checkout
      Cleaning build directory 'C:\build-dir\TEST-BUIL-JOB1'
      Unable to clean source directory 'C:\build-dir\TEST-BUIL-JOB1' C:\build-dir\TEST-BUIL-JOB1\.git
      Build always requires a clean checkout
      Cleaning build directory 'C:\build-dir\TEST-BUIL-JOB1'
      Unable to clean source directory 'C:\build-dir\TEST-BUIL-JOB1' C:\build-dir\TEST-BUIL-JOB1\.git
      Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.
      java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\build-dir\TEST-BUIL-JOB1' C:\build-dir\TEST-BUIL-JOB1\.git
      	at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:144)
      	at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88)
      	at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:203)
      	at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188)
      	at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.preRetrieveSourceCode(VcsCheckoutTask.java:217)
      	at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:124)
      	at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$68(TaskExecutorImpl.java:273)
      	at com.atlassian.bamboo.task.TaskExecutorImpl$$Lambda$20/1672639360.call(Unknown Source)
      	at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202)
      	at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273)
      	at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:83)
      	at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:74)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123)
      	at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
      	at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122)
      	at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118)
      	at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
      	at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
      	at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
      	at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
      	at java.lang.Thread.run(Thread.java:745)
      Caused by: com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\build-dir\TEST-BUIL-JOB1' C:\build-dir\TEST-BUIL-JOB1\.git
      	at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.cleanWorkingDirIfNeeded(VcsCheckoutTask.java:371)
      	at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$100(VcsCheckoutTask.java:57)
      	at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:222)
      	at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:218)
      	at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108)
      	... 22 more
      Caused by: java.nio.file.DirectoryNotEmptyException: C:\build-dir\TEST-BUIL-JOB1\.git
      	at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:266)
      	at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
      	at java.nio.file.Files.delete(Files.java:1126)
      	at com.atlassian.bamboo.utils.BambooPathUtils.deleteNoThrow(BambooPathUtils.java:158)
      	at com.atlassian.bamboo.utils.BambooPathUtils.access$000(BambooPathUtils.java:28)
      	at com.atlassian.bamboo.utils.BambooPathUtils$1.postVisitDirectory(BambooPathUtils.java:97)
      	at com.atlassian.bamboo.utils.BambooPathUtils$1.postVisitDirectory(BambooPathUtils.java:74)
      	at java.nio.file.Files.walkFileTree(Files.java:2688)
      	at java.nio.file.Files.walkFileTree(Files.java:2742)
      	at com.atlassian.bamboo.utils.BambooPathUtils.cleanDirectory(BambooPathUtils.java:103)
      	at com.atlassian.bamboo.util.BambooFileUtils.cleanDirectory(BambooFileUtils.java:770)
      	at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.cleanWorkingDirIfNeeded(VcsCheckoutTask.java:365)
      error	04-Nov-2015 13:51:01		... 26 more
      

      Workaround

      Add a script task to move (not delete) the .git directory out of the working directory.

            [BAM-16620] Windows Elastic agents fail to remove .git directory and cause build failures

            Has this fix been included in the commercial server release version yet?

            Ryan Goodwin added a comment - Has this fix been included in the commercial server release version yet?

            Same here. Had to use the workaround even if the isue is marked resolved.

            François Beauchemin added a comment - Same here. Had to use the workaround even if the isue is marked resolved.

            I can see the issue was "resolved", but has it been actually deployed? Still getting the same error if I delete the step that removes readonly attribute from files

            java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\build-dir\ERENT-UATD-JOB1' C:\build-dir\ERENT-UATD-JOB1\.git
            at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:144)
            at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88)
            at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:203)
            at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188)
            at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.preRetrieveSourceCode(VcsCheckoutTask.java:217)
            at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:124)
            at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$68(TaskExecutorImpl.java:273)
            at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202)
            at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273)
            at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:83)
            at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:74)
            at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196)
            at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132)
            at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123)
            at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
            at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122)
            at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118)
            at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
            at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
            at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
            at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
            at java.lang.Thread.run(Thread.java:745)
            Caused by: com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\build-dir\ERENT-UATD-JOB1' C:\build-dir\ERENT-UATD-JOB1\.git
            at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.cleanWorkingDirIfNeeded(VcsCheckoutTask.java:371)
            at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$100(VcsCheckoutTask.java:57)
            at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:222)
            at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:218)
            at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108)

            oscargalvis added a comment - I can see the issue was "resolved", but has it been actually deployed? Still getting the same error if I delete the step that removes readonly attribute from files java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\build-dir\ERENT-UATD-JOB1' C:\build-dir\ERENT-UATD-JOB1\.git at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:144) at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:203) at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188) at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.preRetrieveSourceCode(VcsCheckoutTask.java:217) at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:124) at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$68(TaskExecutorImpl.java:273) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202) at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273) at com.atlassian.bamboo.task.TaskExecutorImpl.executePreparationTasks(TaskExecutorImpl.java:83) at com.atlassian.bamboo.build.pipeline.tasks.PrepareBuildTask.call(PrepareBuildTask.java:74) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123) at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122) at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118) at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) at java.lang.Thread.run(Thread.java:745) Caused by: com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\build-dir\ERENT-UATD-JOB1' C:\build-dir\ERENT-UATD-JOB1\.git at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.cleanWorkingDirIfNeeded(VcsCheckoutTask.java:371) at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$100(VcsCheckoutTask.java:57) at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:222) at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:218) at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108)

            Pavel, yes, we are thinking about implementing some reuse pattern. It's an often-requested and at the same time non-trivial feature, so it will take some time to implement it.

            Przemek Bruski added a comment - Pavel, yes, we are thinking about implementing some reuse pattern. It's an often-requested and at the same time non-trivial feature, so it will take some time to implement it.

            Pavel Veller added a comment - - edited

            Correction. Suggested workaround works after I modified the pattern to be %bamboo_build_working_directory%/* - notice the / before *.

            Pavel Veller added a comment - - edited Correction. Suggested workaround works after I modified the pattern to be %bamboo_build_working_directory%/* - notice the / before * .

            Thank you. This works but I have like 40+ plans that I need to update with a special workaround task. Not related to this bug but did you guys at Atlassian think about better reuse patterns for build plans than just cloning? Would be really nice if we could have some sort of inheritance or templating where I could have a base plan of sort and have others derive from it. Or some global pre- and post- actions. Then I would only have to add this script task once.

            Pavel Veller added a comment - Thank you. This works but I have like 40+ plans that I need to update with a special workaround task. Not related to this bug but did you guys at Atlassian think about better reuse patterns for build plans than just cloning? Would be really nice if we could have some sort of inheritance or templating where I could have a base plan of sort and have others derive from it. Or some global pre- and post- actions. Then I would only have to add this script task once.

            Przemek Bruski added a comment - - edited

            The workaround given by oscar2 is what we'd suggest to use before this issue is resolved.

            attrib -R /S %bamboo_build_working_directory%/*
            

            The reason for this issue is that Java 7 file deletion APIs no longer delete read only files (on Windows, on Unix everything works fine). There are some read-only files in the .git subdirectory (set up by Git).

            Przemek Bruski added a comment - - edited The workaround given by oscar2 is what we'd suggest to use before this issue is resolved. attrib -R /S %bamboo_build_working_directory%/* The reason for this issue is that Java 7 file deletion APIs no longer delete read only files (on Windows, on Unix everything works fine). There are some read-only files in the .git subdirectory (set up by Git).

            It's only partially a workaround. A build plan that fails tests, for example, won't get to the manual deletion of .git folder. If I rename it to git, for example, I would then have to rename it back to .git if I have tagging/labeling tasks in my plan (and I do). So the workaround becomes hairy - rename right after the checkout to ensure a failing build will still clean up after itself. Rename back to .git right before you plan on running any git commands and then rename back for cleanup.

            I hope Atlassian can fix it quickly and deploy a patch to all hosted environments. Should not be hard to do.

            Pavel Veller added a comment - It's only partially a workaround. A build plan that fails tests, for example, won't get to the manual deletion of .git folder. If I rename it to git , for example, I would then have to rename it back to .git if I have tagging/labeling tasks in my plan (and I do). So the workaround becomes hairy - rename right after the checkout to ensure a failing build will still clean up after itself. Rename back to .git right before you plan on running any git commands and then rename back for cleanup. I hope Atlassian can fix it quickly and deploy a patch to all hosted environments. Should not be hard to do.

            I added a inline powershell task at the end of my build jobs:

            $targetFolder = Join-Path -Path ($env:TEMP) -ChildPath .git

            if ( Test-Path $targetFolder )

            { cmd /c "rmdir /s /q $targetFolder" }

            move-item -Path .git -Destination $targetFolder -Force

            Andy Wahrenberger added a comment - I added a inline powershell task at the end of my build jobs: $targetFolder = Join-Path -Path ($env:TEMP) -ChildPath .git if ( Test-Path $targetFolder ) { cmd /c "rmdir /s /q $targetFolder" } move-item -Path .git -Destination $targetFolder -Force

            Marian Dix added a comment -

            This is not working for me.

            simple 05-Nov-2015 07:56:22 Build CCEAG-QGate - log_error - Default Job #19 (CCEAG-LOG-JOB1-19) started building on agent Elastic Agent on i-81b1523f
            simple 05-Nov-2015 07:56:22 Elastic agent on instance i-81b1523f
            simple 05-Nov-2015 07:56:23 Build working directory is C:\build\CCEAG-LOG-JOB1
            simple 05-Nov-2015 07:56:23 Executing build CCEAG-QGate - log_error - Default Job #19 (CCEAG-LOG-JOB1-19)
            simple 05-Nov-2015 07:56:23 Running pre-build action: VCS Version Collector
            simple 05-Nov-2015 07:56:23 Starting task 'Bamboo Checkout Fix' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
            command 05-Nov-2015 07:56:23 Beginning to execute external process for build 'CCEAG-QGate - log_error - Default Job #19 (CCEAG-LOG-JOB1-19)'\n ... running command line: \nC:\Users\Bamboo\AppData\Local\Temp\CCEAG-LOG-JOB1-19-ScriptBuildTask-7168393946073149419.bat\n ... in: C:\build\CCEAG-LOG-JOB1\n ... using extra environment variables: \nbamboo_planRepository_1_branch=develop\nbamboo_planRepository_2_branch=master\nbamboo_capability_system_builder_ant_Ant_1_9=C:\opt\ant-1.9\nbamboo_capability_system_builder_ant_Ant_1_8=C:\opt\ant-1.8\nbamboo_repository_31555606_name=SFDC Dev Git\nbamboo_repository_revision_number=037a7da49a397918408a263f51a854e19de3c116\nbamboo_sfdc_qa_username=qgate@cc-eag.de.rstage2\nbamboo_capability_system_builder_msbuild_MSBuild_v4_0_32bit=C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe\nbamboo_buildKey=CCEAG-LOG-JOB1\nbamboo_capability_system_builder_grailsBuilder_Grails_2_4=C:\opt\grails-2.4\nbamboo_capability_system_builder_phpunit_PHPUnit_4_4=C:\opt\phpunit-4.4\phpunit\nbamboo_capability_system_builder_grailsBuilder_Grails_2_2=C:\opt\grails-2.2\nbamboo_capability_system_builder_grailsBuilder_Grails_2_3=C:\opt\grails-2.3\nbamboo_capability_system_builder_grailsBuilder_Grails_2_0=C:\opt\grails-2.0\nbamboo_shortJobName=Default Job\nbamboo_capability_system_builder_grailsBuilder_Grails_2_1=C:\opt\grails-2.1\nbamboo_buildResultsUrl=https://yoursl.atlassian.net/builds/browse/CCEAG-LOG-JOB1-19\nbamboo_capability_system_builder_mvn3_Maven_3_2=C:\opt\maven-3.2\nbamboo_planRepository_repositoryUrl=https://bitbucket.org/yoursl/cceag-sfdc-development\nbamboo_capability_system_builder_mvn3_Maven_3_1=C:\opt\maven-3.1\nbamboo_repository_31555607_previous_revision_number=6bc05400c03bad1342bb066e6495d8f77e3cecf8\nbamboo_agentId=31031375\nbamboo_capability_system_builder_mvn3_Maven_3_0=C:\opt\maven-3.0\nbamboo_planRepository_revision=037a7da49a397918408a263f51a854e19de3c116\nbamboo_planRepository_previousRevision=037a7da49a397918408a263f51a854e19de3c116\nbamboo_repository_branch_name=develop\nbamboo_repository_31555606_revision_number=037a7da49a397918408a263f51a854e19de3c116\nbamboo_repository_31555607_git_branch=master\nbamboo_dependenciesDisabled=false\nbamboo_repository_31555607_git_username=mariandix\nbamboo_repository_31555607_git_repositoryUrl=https://bitbucket.org/mariandix/cceag-bamboo-config\nbamboo_repository_31555606_git_branch=develop\nbamboo_planRepository_branch=develop\nbamboo_repository_31555607_revision_number=6bc05400c03bad1342bb066e6495d8f77e3cecf8\nbamboo_planRepository_1_type=bb\nbamboo_planRepository_branchName=develop\nbamboo_capability_system_builder_phpunit_PHPUnit_3_7=C:\opt\phpunit-3.7\phpunit\nbamboo_capability_system_builder_node_Node_js_0_10=C:\opt\node-0.10\node.exe\nbamboo_planRepository_type=bb\nbamboo_planRepository_1_username=mariandix\nbamboo_ManualBuildTriggerReason_userName=mdix\nbamboo_planRepository_2_branchName=master\nbamboo_capability_system_builder_ant_Ant=C:\opt\ant-1.9\nbamboo_capability_system_builder_mvn3_Maven_3=C:\opt\maven-3.2\nbamboo_planKey=CCEAG-LOG\nbamboo_planRepository_username=mariandix\nbamboo_sfdc_qa_serverurl=test.salesforce.com\nbamboo_planRepository_1_branchName=develop\nbamboo_capability_system_builder_mvn2_Maven_2_1=C:\opt\maven-2.1\nbamboo_capability_system_builder_mvn2_Maven_2_2=C:\opt\maven-2.2\nbamboo_capability_system_builder_mvn2_Maven_2_0=C:\opt\maven-2.0\nbamboo_resultsUrl=https://yoursl.atlassian.net/builds/browse/CCEAG-LOG-JOB1-19\nbamboo_planRepository_1_name=SFDC Dev Git\nbamboo_build_working_directory=C:\build\CCEAG-LOG-JOB1\nbamboo_shortPlanName=log_error\nbamboo_planRepository_2_username=mariandix\nbamboo_planRepository_name=SFDC Dev Git\nbamboo_buildNumber=19\nbamboo_repository_31555606_branch_name=develop\nbamboo_repository_31555607_branch_name=master\nbamboo_planName=CCEAG-QGate - log_error\nbamboo_shortPlanKey=LOG\nbamboo_repository_31555606_previous_revision_number=037a7da49a397918408a263f51a854e19de3c116\nbamboo_shortJobKey=JOB1\nbamboo_planRepository_2_name=cceag-bamboo-conf\nbamboo_repository_previous_revision_number=037a7da49a397918408a263f51a854e19de3c116\nbamboo_buildTimeStamp=2015-11-05T07:56:21.996+01:00\nbamboo_capability_system_builder_mvn2_Maven_2=C:\opt\maven-2.2\nbamboo_buildResultKey=CCEAG-LOG-JOB1-19\nbamboo_repository_git_branch=develop\nbamboo_buildPlanName=CCEAG-QGate - log_error - Default Job\nbamboo_planRepository_1_revision=037a7da49a397918408a263f51a854e19de3c116\nbamboo_capability_system_hg_executable=C:\opt\mercurial\hg.exe\nbamboo_repository_name=cceag-bamboo-conf\nbamboo_planRepository_2_previousRevision=6bc05400c03bad1342bb066e6495d8f77e3cecf8\nbamboo_repository_31555606_git_repositoryUrl=https://bitbucket.org/yoursl/cceag-sfdc-development\nbamboo_agentWorkingDirectory=C:\build\nbamboo_planRepository_2_revision=6bc05400c03bad1342bb066e6495d8f77e3cecf8\nbamboo_capability_system_git_executable=C:\opt\git-2.6\bin\git.exe\nbamboo_planRepository_1_previousRevision=037a7da49a397918408a263f51a854e19de3c116\nbamboo_repository_git_username=mariandix\nbamboo_capability_operating_system=windows\nbamboo_capability_system_builder_grailsBuilder_Grails_1_3=C:\opt\grails-1.3\nbamboo_capability_system_builder_nant_Nant=C:\opt\nant-0.92\nbamboo_sfdc_qa_password=********\nbamboo_planRepository_2_type=bb\nbamboo_planRepository_2_repositoryUrl=https://bitbucket.org/mariandix/cceag-bamboo-config\nbamboo_repository_git_repositoryUrl=https://bitbucket.org/yoursl/cceag-sfdc-development\nbamboo_capability_system_builder_msbuild_MSBuild_v4_0__64bit_=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe\nbamboo_repository_31555606_git_username=mariandix\nbamboo_working_directory=C:\build\CCEAG-LOG-JOB1\nbamboo_planRepository_1_repositoryUrl=https://bitbucket.org/yoursl/cceag-sfdc-development\nbamboo_repository_31555607_name=cceag-bamboo-conf\nbamboo_capability_system_jdk_JDK_1_8=C:\opt\jdk-8\nbamboo_capability_system_jdk_JDK_1_6=C:\opt\jdk-6\nbamboo_capability_system_jdk_JDK_1_7=C:\opt\jdk-7\n
            build 05-Nov-2015 07:56:23
            build 05-Nov-2015 07:56:23 C:\build\CCEAG-LOG-JOB1>attrib -R /S C:\build\CCEAG-LOG-JOB1*
            simple 05-Nov-2015 07:56:23 Finished task 'Bamboo Checkout Fix' with result: Success
            simple 05-Nov-2015 07:56:23 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout'
            simple 05-Nov-2015 07:56:23 Build always requires a clean checkout
            simple 05-Nov-2015 07:56:23 Cleaning build directory 'C:\build\CCEAG-LOG-JOB1'
            error 05-Nov-2015 07:56:27 Unable to clean source directory 'C:\build\CCEAG-LOG-JOB1' C:\build\CCEAG-LOG-JOB1\migration-tool
            simple 05-Nov-2015 07:56:27 Build always requires a clean checkout
            simple 05-Nov-2015 07:56:27 Cleaning build directory 'C:\build\CCEAG-LOG-JOB1'
            error 05-Nov-2015 07:56:27 Unable to clean source directory 'C:\build\CCEAG-LOG-JOB1' C:\build\CCEAG-LOG-JOB1\migration-tool
            simple 05-Nov-2015 07:56:28 Build always requires a clean checkout
            simple 05-Nov-2015 07:56:28 Cleaning build directory 'C:\build\CCEAG-LOG-JOB1'
            error 05-Nov-2015 07:56:28 Unable to clean source directory 'C:\build\CCEAG-LOG-JOB1' C:\build\CCEAG-LOG-JOB1\migration-tool
            error 05-Nov-2015 07:56:28 Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout.
            error 05-Nov-2015 07:56:28 java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\build\CCEAG-LOG-JOB1' C:\build\CCEAG-LOG-JOB1\migration-tool
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:144)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:203)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.preRetrieveSourceCode(VcsCheckoutTask.java:217)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:124)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$68(TaskExecutorImpl.java:273)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52)
            error 05-Nov-2015 07:56:28 at java.lang.Thread.run(Thread.java:745)
            error 05-Nov-2015 07:56:28 Caused by: com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\build\CCEAG-LOG-JOB1' C:\build\CCEAG-LOG-JOB1\migration-tool
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.cleanWorkingDirIfNeeded(VcsCheckoutTask.java:371)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$100(VcsCheckoutTask.java:57)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:222)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:218)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108)
            error 05-Nov-2015 07:56:28 ... 21 more
            error 05-Nov-2015 07:56:28 Caused by: java.nio.file.DirectoryNotEmptyException: C:\build\CCEAG-LOG-JOB1\migration-tool
            error 05-Nov-2015 07:56:28 at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:266)
            error 05-Nov-2015 07:56:28 at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103)
            error 05-Nov-2015 07:56:28 at java.nio.file.Files.delete(Files.java:1126)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooPathUtils.deleteNoThrow(BambooPathUtils.java:158)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooPathUtils.access$000(BambooPathUtils.java:28)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooPathUtils$1.postVisitDirectory(BambooPathUtils.java:97)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooPathUtils$1.postVisitDirectory(BambooPathUtils.java:74)
            error 05-Nov-2015 07:56:28 at java.nio.file.Files.walkFileTree(Files.java:2688)
            error 05-Nov-2015 07:56:28 at java.nio.file.Files.walkFileTree(Files.java:2742)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooPathUtils.cleanDirectory(BambooPathUtils.java:103)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.util.BambooFileUtils.cleanDirectory(BambooFileUtils.java:770)
            error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.cleanWorkingDirIfNeeded(VcsCheckoutTask.java:365)
            error 05-Nov-2015 07:56:28 ... 25 more
            simple 05-Nov-2015 07:56:28 Running post build plugin 'Docker Container Cleanup'
            simple 05-Nov-2015 07:56:28 Running post build plugin 'NCover Results Collector'
            simple 05-Nov-2015 07:56:28 Running post build plugin 'Clover Results Collector'
            simple 05-Nov-2015 07:56:28 Running post build plugin 'npm Cache Cleanup'
            simple 05-Nov-2015 07:56:28 Running post build plugin 'Artifact Copier'
            simple 05-Nov-2015 07:56:28 Publishing an artifact: deployed package
            simple 05-Nov-2015 07:56:28 Finished publishing of artifact Job artifact: [deployed package], pattern: [deploymentPackage.zip] anchored at: [migration-tool/src/] in 0s
            simple 05-Nov-2015 07:56:28 Finalising the build...
            simple 05-Nov-2015 07:56:28 Stopping timer.
            simple 05-Nov-2015 07:56:28 Build CCEAG-LOG-JOB1-19 completed.
            simple 05-Nov-2015 07:56:29 Running on server: post build plugin 'NCover Results Collector'
            simple 05-Nov-2015 07:56:29 Running on server: post build plugin 'Build Hanging Detection Configuration'
            simple 05-Nov-2015 07:56:29 Running on server: post build plugin 'Clover Delta Calculator'
            simple 05-Nov-2015 07:56:29 Running on server: post build plugin 'Maven Dependencies Postprocessor'
            simple 05-Nov-2015 07:56:29 All post build plugins have finished
            simple 05-Nov-2015 07:56:29 Generating build results summary...
            simple 05-Nov-2015 07:56:29 Saving build results to disk...
            simple 05-Nov-2015 07:56:29 Logging substituted variables...
            simple 05-Nov-2015 07:56:29 Indexing build results...
            simple 05-Nov-2015 07:56:29 Finished building CCEAG-LOG-JOB1-19.

            Marian Dix added a comment - This is not working for me. simple 05-Nov-2015 07:56:22 Build CCEAG-QGate - log_error - Default Job #19 (CCEAG-LOG-JOB1-19) started building on agent Elastic Agent on i-81b1523f simple 05-Nov-2015 07:56:22 Elastic agent on instance i-81b1523f simple 05-Nov-2015 07:56:23 Build working directory is C:\build\CCEAG-LOG-JOB1 simple 05-Nov-2015 07:56:23 Executing build CCEAG-QGate - log_error - Default Job #19 (CCEAG-LOG-JOB1-19) simple 05-Nov-2015 07:56:23 Running pre-build action: VCS Version Collector simple 05-Nov-2015 07:56:23 Starting task 'Bamboo Checkout Fix' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script' command 05-Nov-2015 07:56:23 Beginning to execute external process for build 'CCEAG-QGate - log_error - Default Job #19 (CCEAG-LOG-JOB1-19)'\n ... running command line: \nC:\Users\Bamboo\AppData\Local\Temp\CCEAG-LOG-JOB1-19-ScriptBuildTask-7168393946073149419.bat\n ... in: C:\build\CCEAG-LOG-JOB1\n ... using extra environment variables: \nbamboo_planRepository_1_branch=develop\nbamboo_planRepository_2_branch=master\nbamboo_capability_system_builder_ant_Ant_1_9=C:\opt\ant-1.9\nbamboo_capability_system_builder_ant_Ant_1_8=C:\opt\ant-1.8\nbamboo_repository_31555606_name=SFDC Dev Git\nbamboo_repository_revision_number=037a7da49a397918408a263f51a854e19de3c116\nbamboo_sfdc_qa_username=qgate@cc-eag.de.rstage2\nbamboo_capability_system_builder_msbuild_MSBuild_v4_0_ 32bit =C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe\nbamboo_buildKey=CCEAG-LOG-JOB1\nbamboo_capability_system_builder_grailsBuilder_Grails_2_4=C:\opt\grails-2.4\nbamboo_capability_system_builder_phpunit_PHPUnit_4_4=C:\opt\phpunit-4.4\phpunit\nbamboo_capability_system_builder_grailsBuilder_Grails_2_2=C:\opt\grails-2.2\nbamboo_capability_system_builder_grailsBuilder_Grails_2_3=C:\opt\grails-2.3\nbamboo_capability_system_builder_grailsBuilder_Grails_2_0=C:\opt\grails-2.0\nbamboo_shortJobName=Default Job\nbamboo_capability_system_builder_grailsBuilder_Grails_2_1=C:\opt\grails-2.1\nbamboo_buildResultsUrl= https://yoursl.atlassian.net/builds/browse/CCEAG-LOG-JOB1-19\nbamboo_capability_system_builder_mvn3_Maven_3_2=C:\opt\maven-3.2\nbamboo_planRepository_repositoryUrl=https://bitbucket.org/yoursl/cceag-sfdc-development\nbamboo_capability_system_builder_mvn3_Maven_3_1=C:\opt\maven-3.1\nbamboo_repository_31555607_previous_revision_number=6bc05400c03bad1342bb066e6495d8f77e3cecf8\nbamboo_agentId=31031375\nbamboo_capability_system_builder_mvn3_Maven_3_0=C:\opt\maven-3.0\nbamboo_planRepository_revision=037a7da49a397918408a263f51a854e19de3c116\nbamboo_planRepository_previousRevision=037a7da49a397918408a263f51a854e19de3c116\nbamboo_repository_branch_name=develop\nbamboo_repository_31555606_revision_number=037a7da49a397918408a263f51a854e19de3c116\nbamboo_repository_31555607_git_branch=master\nbamboo_dependenciesDisabled=false\nbamboo_repository_31555607_git_username=mariandix\nbamboo_repository_31555607_git_repositoryUrl=https://bitbucket.org/mariandix/cceag-bamboo-config\nbamboo_repository_31555606_git_branch=develop\nbamboo_planRepository_branch=develop\nbamboo_repository_31555607_revision_number=6bc05400c03bad1342bb066e6495d8f77e3cecf8\nbamboo_planRepository_1_type=bb\nbamboo_planRepository_branchName=develop\nbamboo_capability_system_builder_phpunit_PHPUnit_3_7=C:\opt\phpunit-3.7\phpunit\nbamboo_capability_system_builder_node_Node_js_0_10=C:\opt\node-0.10\node.exe\nbamboo_planRepository_type=bb\nbamboo_planRepository_1_username=mariandix\nbamboo_ManualBuildTriggerReason_userName=mdix\nbamboo_planRepository_2_branchName=master\nbamboo_capability_system_builder_ant_Ant=C:\opt\ant-1.9\nbamboo_capability_system_builder_mvn3_Maven_3=C:\opt\maven-3.2\nbamboo_planKey=CCEAG-LOG\nbamboo_planRepository_username=mariandix\nbamboo_sfdc_qa_serverurl=test.salesforce.com\nbamboo_planRepository_1_branchName=develop\nbamboo_capability_system_builder_mvn2_Maven_2_1=C:\opt\maven-2.1\nbamboo_capability_system_builder_mvn2_Maven_2_2=C:\opt\maven-2.2\nbamboo_capability_system_builder_mvn2_Maven_2_0=C:\opt\maven-2.0\nbamboo_resultsUrl=https://yoursl.atlassian.net/builds/browse/CCEAG-LOG-JOB1-19\nbamboo_planRepository_1_name=SFDC Dev Git\nbamboo_build_working_directory=C:\build\CCEAG-LOG-JOB1\nbamboo_shortPlanName=log_error\nbamboo_planRepository_2_username=mariandix\nbamboo_planRepository_name=SFDC Dev Git\nbamboo_buildNumber=19\nbamboo_repository_31555606_branch_name=develop\nbamboo_repository_31555607_branch_name=master\nbamboo_planName=CCEAG-QGate - log_error\nbamboo_shortPlanKey=LOG\nbamboo_repository_31555606_previous_revision_number=037a7da49a397918408a263f51a854e19de3c116\nbamboo_shortJobKey=JOB1\nbamboo_planRepository_2_name=cceag-bamboo-conf\nbamboo_repository_previous_revision_number=037a7da49a397918408a263f51a854e19de3c116\nbamboo_buildTimeStamp=2015-11-05T07:56:21.996+01:00\nbamboo_capability_system_builder_mvn2_Maven_2=C:\opt\maven-2.2\nbamboo_buildResultKey=CCEAG-LOG-JOB1-19\nbamboo_repository_git_branch=develop\nbamboo_buildPlanName=CCEAG-QGate - log_error - Default Job\nbamboo_planRepository_1_revision=037a7da49a397918408a263f51a854e19de3c116\nbamboo_capability_system_hg_executable=C:\opt\mercurial\hg.exe\nbamboo_repository_name=cceag-bamboo-conf\nbamboo_planRepository_2_previousRevision=6bc05400c03bad1342bb066e6495d8f77e3cecf8\nbamboo_repository_31555606_git_repositoryUrl= https://bitbucket.org/yoursl/cceag-sfdc-development\nbamboo_agentWorkingDirectory=C:\build\nbamboo_planRepository_2_revision=6bc05400c03bad1342bb066e6495d8f77e3cecf8\nbamboo_capability_system_git_executable=C:\opt\git-2.6\bin\git.exe\nbamboo_planRepository_1_previousRevision=037a7da49a397918408a263f51a854e19de3c116\nbamboo_repository_git_username=mariandix\nbamboo_capability_operating_system=windows\nbamboo_capability_system_builder_grailsBuilder_Grails_1_3=C:\opt\grails-1.3\nbamboo_capability_system_builder_nant_Nant=C:\opt\nant-0.92\nbamboo_sfdc_qa_password=********\nbamboo_planRepository_2_type=bb\nbamboo_planRepository_2_repositoryUrl=https://bitbucket.org/mariandix/cceag-bamboo-config\nbamboo_repository_git_repositoryUrl=https://bitbucket.org/yoursl/cceag-sfdc-development\nbamboo_capability_system_builder_msbuild_MSBuild_v4_0__64bit_=C:\Windows\Microsoft.NET\Framework64\v4.0.30319\MSBuild.exe\nbamboo_repository_31555606_git_username=mariandix\nbamboo_working_directory=C:\build\CCEAG-LOG-JOB1\nbamboo_planRepository_1_repositoryUrl=https://bitbucket.org/yoursl/cceag-sfdc-development\nbamboo_repository_31555607_name=cceag-bamboo-conf\nbamboo_capability_system_jdk_JDK_1_8=C:\opt\jdk-8\nbamboo_capability_system_jdk_JDK_1_6=C:\opt\jdk-6\nbamboo_capability_system_jdk_JDK_1_7=C:\opt\jdk-7\n build 05-Nov-2015 07:56:23 build 05-Nov-2015 07:56:23 C:\build\CCEAG-LOG-JOB1>attrib -R /S C:\build\CCEAG-LOG-JOB1* simple 05-Nov-2015 07:56:23 Finished task 'Bamboo Checkout Fix' with result: Success simple 05-Nov-2015 07:56:23 Starting task 'Checkout Default Repository' of type 'com.atlassian.bamboo.plugins.vcs:task.vcs.checkout' simple 05-Nov-2015 07:56:23 Build always requires a clean checkout simple 05-Nov-2015 07:56:23 Cleaning build directory 'C:\build\CCEAG-LOG-JOB1' error 05-Nov-2015 07:56:27 Unable to clean source directory 'C:\build\CCEAG-LOG-JOB1' C:\build\CCEAG-LOG-JOB1\migration-tool simple 05-Nov-2015 07:56:27 Build always requires a clean checkout simple 05-Nov-2015 07:56:27 Cleaning build directory 'C:\build\CCEAG-LOG-JOB1' error 05-Nov-2015 07:56:27 Unable to clean source directory 'C:\build\CCEAG-LOG-JOB1' C:\build\CCEAG-LOG-JOB1\migration-tool simple 05-Nov-2015 07:56:28 Build always requires a clean checkout simple 05-Nov-2015 07:56:28 Cleaning build directory 'C:\build\CCEAG-LOG-JOB1' error 05-Nov-2015 07:56:28 Unable to clean source directory 'C:\build\CCEAG-LOG-JOB1' C:\build\CCEAG-LOG-JOB1\migration-tool error 05-Nov-2015 07:56:28 Error occurred while running Task 'Checkout Default Repository(1)' of type com.atlassian.bamboo.plugins.vcs:task.vcs.checkout. error 05-Nov-2015 07:56:28 java.lang.RuntimeException: com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\build\CCEAG-LOG-JOB1' C:\build\CCEAG-LOG-JOB1\migration-tool error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:144) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.executor.RetryingTaskExecutor.runTask(RetryingTaskExecutor.java:88) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:203) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.executor.RetryingTaskExecutor.retry(RetryingTaskExecutor.java:188) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.preRetrieveSourceCode(VcsCheckoutTask.java:217) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.execute(VcsCheckoutTask.java:124) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$68(TaskExecutorImpl.java:273) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:202) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:273) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:108) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:75) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:196) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:132) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl$1.call(BuildAgentControllerImpl.java:123) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:215) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:122) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:118) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:49) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:31) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:20) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:52) error 05-Nov-2015 07:56:28 at java.lang.Thread.run(Thread.java:745) error 05-Nov-2015 07:56:28 Caused by: com.atlassian.bamboo.repository.RepositoryException: Unable to clean source directory 'C:\build\CCEAG-LOG-JOB1' C:\build\CCEAG-LOG-JOB1\migration-tool error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.cleanWorkingDirIfNeeded(VcsCheckoutTask.java:371) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.access$100(VcsCheckoutTask.java:57) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:222) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask$2.call(VcsCheckoutTask.java:218) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.executor.RetryingTaskExecutor.rerun(RetryingTaskExecutor.java:108) error 05-Nov-2015 07:56:28 ... 21 more error 05-Nov-2015 07:56:28 Caused by: java.nio.file.DirectoryNotEmptyException: C:\build\CCEAG-LOG-JOB1\migration-tool error 05-Nov-2015 07:56:28 at sun.nio.fs.WindowsFileSystemProvider.implDelete(WindowsFileSystemProvider.java:266) error 05-Nov-2015 07:56:28 at sun.nio.fs.AbstractFileSystemProvider.delete(AbstractFileSystemProvider.java:103) error 05-Nov-2015 07:56:28 at java.nio.file.Files.delete(Files.java:1126) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooPathUtils.deleteNoThrow(BambooPathUtils.java:158) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooPathUtils.access$000(BambooPathUtils.java:28) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooPathUtils$1.postVisitDirectory(BambooPathUtils.java:97) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooPathUtils$1.postVisitDirectory(BambooPathUtils.java:74) error 05-Nov-2015 07:56:28 at java.nio.file.Files.walkFileTree(Files.java:2688) error 05-Nov-2015 07:56:28 at java.nio.file.Files.walkFileTree(Files.java:2742) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.utils.BambooPathUtils.cleanDirectory(BambooPathUtils.java:103) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.util.BambooFileUtils.cleanDirectory(BambooFileUtils.java:770) error 05-Nov-2015 07:56:28 at com.atlassian.bamboo.plugins.vcs.task.VcsCheckoutTask.cleanWorkingDirIfNeeded(VcsCheckoutTask.java:365) error 05-Nov-2015 07:56:28 ... 25 more simple 05-Nov-2015 07:56:28 Running post build plugin 'Docker Container Cleanup' simple 05-Nov-2015 07:56:28 Running post build plugin 'NCover Results Collector' simple 05-Nov-2015 07:56:28 Running post build plugin 'Clover Results Collector' simple 05-Nov-2015 07:56:28 Running post build plugin 'npm Cache Cleanup' simple 05-Nov-2015 07:56:28 Running post build plugin 'Artifact Copier' simple 05-Nov-2015 07:56:28 Publishing an artifact: deployed package simple 05-Nov-2015 07:56:28 Finished publishing of artifact Job artifact: [deployed package] , pattern: [deploymentPackage.zip] anchored at: [migration-tool/src/] in 0s simple 05-Nov-2015 07:56:28 Finalising the build... simple 05-Nov-2015 07:56:28 Stopping timer. simple 05-Nov-2015 07:56:28 Build CCEAG-LOG-JOB1-19 completed. simple 05-Nov-2015 07:56:29 Running on server: post build plugin 'NCover Results Collector' simple 05-Nov-2015 07:56:29 Running on server: post build plugin 'Build Hanging Detection Configuration' simple 05-Nov-2015 07:56:29 Running on server: post build plugin 'Clover Delta Calculator' simple 05-Nov-2015 07:56:29 Running on server: post build plugin 'Maven Dependencies Postprocessor' simple 05-Nov-2015 07:56:29 All post build plugins have finished simple 05-Nov-2015 07:56:29 Generating build results summary... simple 05-Nov-2015 07:56:29 Saving build results to disk... simple 05-Nov-2015 07:56:29 Logging substituted variables... simple 05-Nov-2015 07:56:29 Indexing build results... simple 05-Nov-2015 07:56:29 Finished building CCEAG-LOG-JOB1-19.

              pbruski Przemek Bruski
              88d4d5d561c4 Pavel Veller
              Affected customers:
              6 This affects my team
              Watchers:
              16 Start watching this issue

                Created:
                Updated:
                Resolved: