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

Copy Artifact to node on same machine as master broken

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • copyartifact-plugin
    • None
    • Jenkins 2.1, Copy Artifact 1.38, Pipeline 2.0
      Windows 2008R2 SP1

      My Jenkins environment contains a node running on the same machine as the master, as well as several other nodes on other machines.

      Copying artifacts to workspaces on other nodes works without a problem but if i try and copy to the node that's running alongside the master it appears to just halt. I can see an empty file created in the target workspace but no data appears to copy no matter how long I wait.

      The pipeline thread dump isn't terribly useful:
      Thread #2
      at DSL.step(Native Method)
      at WorkflowScript.run(WorkflowScript:2)
      at DSL.node(Native Method)
      at WorkflowScript.run(WorkflowScript:1)

      Cancelling the job gives this stack trace:
      hudson.util.IOException2: Failed to copy C:\Program Files (x86)\Jenkins\jobs\TEST_MULTIBRANCH\branches\master\builds\87\archive\install.zip to D:\Jenkins\workspace\TEST_PIPELINE_CLOSURE\install.zip
      at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:117)
      at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyAll(FingerprintingCopyMethod.java:67)
      at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:526)
      at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:460)
      at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:68)
      at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:59)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:49)
      at hudson.security.ACL.impersonate(ACL.java:213)
      at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:47)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)
      Caused by: java.io.InterruptedIOException
      at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:147)
      at hudson.remoting.RemoteOutputStream.write(RemoteOutputStream.java:110)
      at java.security.DigestOutputStream.write(DigestOutputStream.java:145)
      at hudson.remoting.RemoteOutputStream.write(RemoteOutputStream.java:110)
      at hudson.Util.copyStream(Util.java:485)
      at hudson.FilePath$41.invoke(FilePath.java:2017)
      at hudson.FilePath$41.invoke(FilePath.java:2011)
      at hudson.FilePath.act(FilePath.java:990)
      at hudson.FilePath.act(FilePath.java:968)
      at hudson.FilePath.copyTo(FilePath.java:2011)
      at hudson.plugins.copyartifact.FingerprintingCopyMethod.copyOne(FingerprintingCopyMethod.java:83)
      ... 13 more
      Caused by: java.lang.InterruptedException
      at java.lang.Object.wait(Native Method)
      at hudson.remoting.PipeWindow$Real.get(PipeWindow.java:209)
      at hudson.remoting.ProxyOutputStream.write(ProxyOutputStream.java:122)
      ... 23 more

      The pipeline script is:

      node("master-buildnode"){
      step([$class: 'CopyArtifact', filter: 'install.zip', fingerprintArtifacts: true, projectName: 'TEST_MULTIBRANCH/master', resultVariableSuffix: 'MASTER_BUILD_NUMBER'])
      }

            Unassigned Unassigned
            danielbutler Daniel Butler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: