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

Test failure of hudson.plugins.ws_cleanup.CleanupTest.reportCleanupCommandFailure on MacOS

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • ws-cleanup-plugin
    • None
    • Tested with maven 3.9.4, on macOS 13.5, using OpenJDK 17, calling "mvn clean verify package"

      [ERROR] Tests run: 18, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 87.18 s <<< FAILURE! -- in hudson.plugins.ws_cleanup.CleanupTest
      [ERROR] hudson.plugins.ws_cleanup.CleanupTest.reportCleanupCommandFailure -- Time elapsed: 1.814 s <<< FAILURE!
      java.lang.AssertionError: 
      
      Expected: a string containing "mkdir: cannot create directory"
           but: was "Legacy code started this job.  No cause information is available
      Running as SYSTEM
      Building in workspace /Users/alex/Desktop/ws-cleanup-plugin/target/tmp/j h1027031889427895098/workspace/sut
      [WS-CLEANUP] Deleting project workspace...
      ERROR: Cleanup command 'mkdir /Users/alex/Desktop/ws-cleanup-plugin/target/tmp/j h1027031889427895098/workspace/sut/post-build' failed with code 1:
      mkdir: /Users/alex/Desktop/ws-cleanup-plugin/target/tmp/j h1027031889427895098/workspace/sut/post-build: File exists
      ERROR: Cleanup command 'mkdir /Users/alex/Desktop/ws-cleanup-plugin/target/tmp/j h1027031889427895098/workspace/sut/pre-build' failed with code 1:
      mkdir: /Users/alex/Desktop/ws-cleanup-plugin/target/tmp/j h1027031889427895098/workspace/sut/pre-build: File exists
      [WS-CLEANUP] Done
      [WS-CLEANUP] Deleting project workspace...
      ERROR: Cleanup command 'mkdir /Users/alex/Desktop/ws-cleanup-plugin/target/tmp/j h1027031889427895098/workspace/sut/post-build' failed with code 1:
      mkdir: /Users/alex/Desktop/ws-cleanup-plugin/target/tmp/j h1027031889427895098/workspace/sut/post-build: File exists
      ERROR: Cleanup command 'mkdir /Users/alex/Desktop/ws-cleanup-plugin/target/tmp/j h1027031889427895098/workspace/sut/pre-build' failed with code 1:
      mkdir: /Users/alex/Desktop/ws-cleanup-plugin/target/tmp/j h1027031889427895098/workspace/sut/pre-build: File exists
      [WS-CLEANUP] done
      Finished: SUCCESS
      "
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:20)
      	at org.hamcrest.MatcherAssert.assertThat(MatcherAssert.java:6)
      	at org.jvnet.hudson.test.JenkinsRule.assertLogContains(JenkinsRule.java:1518)
      	at hudson.plugins.ws_cleanup.CleanupTest.reportCleanupCommandFailure(CleanupTest.java:242)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
      	at org.jvnet.hudson.test.JenkinsRule$1.evaluate(JenkinsRule.java:607)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.lang.Thread.run(Thread.java:833)
      

            olivergondza Oliver Gondža
            notmyfault Alexander Brandes
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: