From time to time tests like this are observed to fail in setup on CI builders with

      java.nio.channels.ClosedByInterruptException: null
      	at java.nio.channels.spi.AbstractInterruptibleChannel.end(AbstractInterruptibleChannel.java:202)
      	at sun.nio.ch.FileChannelImpl.size(FileChannelImpl.java:314)
      	at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:1142)
      	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1091)
      	at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:1038)
      	at org.jvnet.hudson.test.JenkinsRule$7$Jpl.resolveDependencies(JenkinsRule.java:1671)
      	at org.jvnet.hudson.test.JenkinsRule$7.decorateHome(JenkinsRule.java:1613)
      	at org.jvnet.hudson.test.JenkinsRule.newHudson(JenkinsRule.java:557)
      	at org.jvnet.hudson.test.JenkinsRule.before(JenkinsRule.java:346)
      	at org.jvnet.hudson.test.JenkinsRule$2.evaluate(JenkinsRule.java:504)
      	at ...
      

      Not sure why it happens (build timeout is not responsible), but we should just carry on in that case.

          [JENKINS-30395] ClosedByInterruptException in JenkinsRule setup

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/ToolStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/input/InputStepTest.java
          http://jenkins-ci.org/commit/pipeline-input-step-plugin/1508af223e0ac518419e2e21faab42634dfd5d55
          Log:
          JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0.
          Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/ToolStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/input/InputStepTest.java http://jenkins-ci.org/commit/pipeline-input-step-plugin/1508af223e0ac518419e2e21faab42634dfd5d55 Log: JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0. Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/StageTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/ToolStepTest.java
          http://jenkins-ci.org/commit/pipeline-stage-step-plugin/df29f6ad6dd09534641bde7812b6ae694fc52341
          Log:
          JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0.
          Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/StageTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/ToolStepTest.java http://jenkins-ci.org/commit/pipeline-stage-step-plugin/df29f6ad6dd09534641bde7812b6ae694fc52341 Log: JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0. Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/SingleJobTestBase.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowJobNonRestartingTest.java
          http://jenkins-ci.org/commit/workflow-cps-plugin/15f6119722663bd5abb332c42772ebad0a7e1c8f
          Log:
          JENKINS-30395 Trying to diagnose the root cause of a recurrent ClosedByInterruptException in CI.
          Originally-Committed-As: ed77fb97a349da51b675f97d06fce8ebe863f107

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/SingleJobTestBase.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowJobNonRestartingTest.java http://jenkins-ci.org/commit/workflow-cps-plugin/15f6119722663bd5abb332c42772ebad0a7e1c8f Log: JENKINS-30395 Trying to diagnose the root cause of a recurrent ClosedByInterruptException in CI. Originally-Committed-As: ed77fb97a349da51b675f97d06fce8ebe863f107

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsFlowExecutionTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsScmFlowDefinitionTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/DSLTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/DynamicEnvironmentExpanderTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/SingleJobTestBase.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/LoadStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/RestartingLoadStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/IsUnixStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PushdStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java
          http://jenkins-ci.org/commit/workflow-cps-plugin/90d38ad7e5e6a39512feff5afb432f10024601da
          Log:
          Merge pull request #277 from jglick/diag-JENKINS-30395

          JENKINS-30395 Preventing a recurrent ClosedByInterruptException in CI
          Originally-Committed-As: 3d85711de54cd43f1b703e5a9dc0345d23730ced

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsFlowExecutionTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsScmFlowDefinitionTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/DSLTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/DynamicEnvironmentExpanderTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/SingleJobTestBase.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/LoadStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/RestartingLoadStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/IsUnixStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PushdStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java http://jenkins-ci.org/commit/workflow-cps-plugin/90d38ad7e5e6a39512feff5afb432f10024601da Log: Merge pull request #277 from jglick/diag- JENKINS-30395 JENKINS-30395 Preventing a recurrent ClosedByInterruptException in CI Originally-Committed-As: 3d85711de54cd43f1b703e5a9dc0345d23730ced

          Code changed in jenkins
          User: Jesse Glick
          Path:
          cps/src/test/java/org/jenkinsci/plugins/workflow/cps/AbstractCpsFlowTest.java
          http://jenkins-ci.org/commit/workflow-cps-plugin/137ef8f6e60cd9416fe81e5654805d4921cd1434
          Log:
          JENKINS-30395 Extend workaround to subclasses of AbstractCpsFlowTest.

          Originally-Committed-As: 0aa6a126c5050200827c9b706911d625a20e4f7c

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: cps/src/test/java/org/jenkinsci/plugins/workflow/cps/AbstractCpsFlowTest.java http://jenkins-ci.org/commit/workflow-cps-plugin/137ef8f6e60cd9416fe81e5654805d4921cd1434 Log: JENKINS-30395 Extend workaround to subclasses of AbstractCpsFlowTest. Originally-Committed-As: 0aa6a126c5050200827c9b706911d625a20e4f7c

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunTest.java
          http://jenkins-ci.org/commit/workflow-job-plugin/b0026ccc5c3b935b8f78a926bd2d2fedb79b920e
          Log:
          JENKINS-30395 Trying to diagnose the root cause of a recurrent ClosedByInterruptException in CI.
          Originally-Committed-As: ed77fb97a349da51b675f97d06fce8ebe863f107

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunTest.java http://jenkins-ci.org/commit/workflow-job-plugin/b0026ccc5c3b935b8f78a926bd2d2fedb79b920e Log: JENKINS-30395 Trying to diagnose the root cause of a recurrent ClosedByInterruptException in CI. Originally-Committed-As: ed77fb97a349da51b675f97d06fce8ebe863f107

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/EchoStepTest.java
          http://jenkins-ci.org/commit/workflow-multibranch-plugin/78f44c2732bbc6b1b9d06fef2a2f5076adf90266
          Log:
          Some recently added tests neglected to invoke the JENKINS-30395 workaround.
          Originally-Committed-As: 95e1886f06bb74174087e8cc42d1a56be2fef2c7

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/EchoStepTest.java http://jenkins-ci.org/commit/workflow-multibranch-plugin/78f44c2732bbc6b1b9d06fef2a2f5076adf90266 Log: Some recently added tests neglected to invoke the JENKINS-30395 workaround. Originally-Committed-As: 95e1886f06bb74174087e8cc42d1a56be2fef2c7

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/EchoStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PushdStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/ToolStepTest.java
          http://jenkins-ci.org/commit/workflow-multibranch-plugin/3863d452771b11172229444caba00984b18dae7c
          Log:
          JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0.
          Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/EchoStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PushdStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/ToolStepTest.java http://jenkins-ci.org/commit/workflow-multibranch-plugin/3863d452771b11172229444caba00984b18dae7c Log: JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0. Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsFlowExecutionTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsScmFlowDefinitionTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/DSLTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/DynamicEnvironmentExpanderTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/SingleJobTestBase.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/LoadStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/RestartingLoadStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/IsUnixStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PushdStepTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java
          cps/src/test/java/org/jenkinsci/plugins/workflow/cps/AbstractCpsFlowTest.java
          http://jenkins-ci.org/commit/workflow-cps-plugin/b99329d09ad2c8815e60cd268839295d6b17c329
          Log:
          JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0.
          Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsFlowExecutionTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/CpsScmFlowDefinitionTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/DSLTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/DynamicEnvironmentExpanderTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/SingleJobTestBase.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/CpsThreadDumpTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/LoadStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/cps/steps/RestartingLoadStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/IsUnixStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PushdStepTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/steps/PwdStepTest.java cps/src/test/java/org/jenkinsci/plugins/workflow/cps/AbstractCpsFlowTest.java http://jenkins-ci.org/commit/workflow-cps-plugin/b99329d09ad2c8815e60cd268839295d6b17c329 Log: JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0. Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

          Code changed in jenkins
          User: Jesse Glick
          Path:
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/DynamicEnvironmentExpanderTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunRestartTest.java
          aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunTest.java
          http://jenkins-ci.org/commit/workflow-job-plugin/edf1cd0564930316ce4878a09b29088496a4d535
          Log:
          JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0.
          Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Jesse Glick Path: aggregator/src/test/java/org/jenkinsci/plugins/workflow/DynamicEnvironmentExpanderTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunRestartTest.java aggregator/src/test/java/org/jenkinsci/plugins/workflow/WorkflowRunTest.java http://jenkins-ci.org/commit/workflow-job-plugin/edf1cd0564930316ce4878a09b29088496a4d535 Log: JENKINS-30395 Deleting workaround now that we can use jenkins-test-harness 2.0. Originally-Committed-As: 109b8f82415fc41f24d5d6545e586f0bce7ba705

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: