Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-7323

We always get "[WARNING] - Can't create the path /C:/HudsonSlave/workspace/dotnet/generatedJUnitFiles. Maybe the directory already exists." and xUnit can't delete temporary JUnit files


    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
    • Environment:
      XUnit 1.7, Job is executed at a Windows Server 2008 Slave running Hudson Slave as a Service using an account with local admin privilegues. The Hudson master is located on an Ubuntu 10.04 machine.
    • Similar Issues:


      We get this output regardless of if we have "Delete temporary JUnit files" checked or not. It also does not matter if we manually make sure generatedJUnitFiles is deleted or not.

      If we check "Delete temporary JUnit files" xUnit is still unable to delete the directory.

      C:\HudsonSlave\workspace\dotnet>exit 0
      [TASKS] Scanning workspace files for tasks...
      [WARNINGS] Parsing warnings in console log...
      Archiving artifacts
      [xUnit] [INFO] - Starting to record.
      [xUnit] [WARNING] - Can't create the path /C:/HudsonSlave/workspace/dotnet/generatedJUnitFiles. Maybe the directory already exists.
      [xUnit] [INFO] - Processing NUnit-Version N/A (default)
      [xUnit] [INFO] - [NUnit-Version N/A (default)] - 1 test report file(s) were found with the pattern 'ProjectName.CoreTest\bin\Release\NUnitResults.xml' relative to 'C:\HudsonSlave\workspace\dotnet' for the testing framework 'NUnit-Version N/A (default)'.
      [xUnit] [INFO] - Converting 'C:\HudsonSlave\workspace\dotnet\ProjectName.CoreTest\bin\Release\NUnitResults.xml' .
      [xUnit] [WARNING] - Can't delete the file: C:\HudsonSlave\workspace\dotnet\generatedJUnitFiles\NUnit\TEST-1674223725.xml
      [xUnit] [INFO] - Stopping recording.
      Sending e-mails to: dev@website.com
      Finished: UNSTABLE

      See mail list thread in the submitted URL for complete screenshots of all important output and settings for one case of this problem.


          Issue Links



              • Assignee:
                gbois Gregory Boissinot
                binary254 binary254
              • Votes:
                5 Vote for this issue
                4 Start watching this issue


                • Created: