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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: xunit-plugin
    • Labels:
      None
    • 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:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : gbois
            Path:
            trunk/hudson/dtkit/dtkit-frmk/dtkit-metrics-util/src/main/java/com/thalesgroup/dtkit/util/converter/ConversionService.java
            http://jenkins-ci.org/commit/35134
            Log:
            Try to fix JENKINS-7323

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : gbois Path: trunk/hudson/dtkit/dtkit-frmk/dtkit-metrics-util/src/main/java/com/thalesgroup/dtkit/util/converter/ConversionService.java http://jenkins-ci.org/commit/35134 Log: Try to fix JENKINS-7323
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in hudson
            User: : gbois
            Path:
            trunk/hudson/plugins/xunit/pom.xml
            trunk/hudson/plugins/xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/XUnitPublisher.java
            trunk/hudson/plugins/xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitConversionService.java
            trunk/hudson/plugins/xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/transformer/XUnitToolInfo.java
            trunk/hudson/plugins/xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/transformer/XUnitTransformer.java
            trunk/hudson/plugins/xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitReportProcessingServiceTest.java
            trunk/hudson/plugins/xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/types/xUnitTypeTest.java
            http://jenkins-ci.org/commit/35141
            Log:
            Refactor for trying to fix JENKINS-7323

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in hudson User: : gbois Path: trunk/hudson/plugins/xunit/pom.xml trunk/hudson/plugins/xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/XUnitPublisher.java trunk/hudson/plugins/xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitConversionService.java trunk/hudson/plugins/xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/transformer/XUnitToolInfo.java trunk/hudson/plugins/xunit/src/main/java/com/thalesgroup/hudson/plugins/xunit/transformer/XUnitTransformer.java trunk/hudson/plugins/xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/service/XUnitReportProcessingServiceTest.java trunk/hudson/plugins/xunit/src/test/java/com/thalesgroup/hudson/plugins/xunit/types/xUnitTypeTest.java http://jenkins-ci.org/commit/35141 Log: Refactor for trying to fix JENKINS-7323
            Hide
            gbois Gregory Boissinot added a comment -

            A potential fix is available in trunk
            You are able to test the fix by downloading the latest snapshot version (hpi file): http://ci.hudson-labs.org/job/plugins_xunit/31/org.jvnet.hudson.plugins$xunit/

            Show
            gbois Gregory Boissinot added a comment - A potential fix is available in trunk You are able to test the fix by downloading the latest snapshot version (hpi file): http://ci.hudson-labs.org/job/plugins_xunit/31/org.jvnet.hudson.plugins$xunit/
            Hide
            tjobb tjobb added a comment -

            The potential fix in trunk worked for me.

            Thank you!

            Show
            tjobb tjobb added a comment - The potential fix in trunk worked for me. Thank you!
            Hide
            jamescauwelier jamescauwelier added a comment -

            I am using apt-get for installing hudson.

            How can I get this fix? Is it already in the repositories for ubuntu?

            Show
            jamescauwelier jamescauwelier added a comment - I am using apt-get for installing hudson. How can I get this fix? Is it already in the repositories for ubuntu?

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: