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

ZIp step on jenkins slave duplicates full pah and fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: In Progress (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Labels:
      None
    • Environment:
      Jenkins (docker) 2.107.3
      docker ssh slave
      pipeline-utility-steps 2.1.0
    • Similar Issues:

      Description

      Building a zip works when running in "master" but when running in  docker slave.

      it duplicates full path and fails

       

      // fails
      //def tmp     = pwd tmp:true
      
      // works on slave
      def tmp     = './@tmp'
      
      zip zipFile:"$tmp/file.zip" , archive:true, dir:"$dest/package/dist"
      
      
         
      

        

      java.nio.file.NoSuchFileException: /home/jenkins/workspace/Integration/accesoproveedor/home/jenkins/workspace/Integration/accesoproveedor@tmp/accesoproveedor-2017.0.4-abe2418.zip
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
      	at sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:218)
      	at sun.nio.fs.UnixFileAttributeViews$Posix.readAttributes(UnixFileAttributeViews.java:131)
      	at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144)
      	at sun.nio.fs.LinuxFileSystemProvider.readAttributes(LinuxFileSystemProvider.java:99)
      	at java.nio.file.Files.readAttributes(Files.java:1737)
      	at java.nio.file.Files.getPosixFilePermissions(Files.java:2004)
      	at hudson.util.IOUtils.mode(IOUtils.java:130)
      Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to docker-13c2d8d6e933e
      		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1737)
      		at hudson.remoting.UserResponse.retrieve(UserRequest.java:313)
      		at hudson.remoting.Channel$2.adapt(Channel.java:986)
      		at hudson.remoting.Channel$2.adapt(Channel.java:983)
      		at hudson.remoting.FutureAdapter.get(FutureAdapter.java:55)
      		at hudson.FilePath.copyRecursiveTo(FilePath.java:2303)
      		at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
      		at org.jenkinsci.plugins.pipeline.utility.steps.zip.ZipStepExecution.run(ZipStepExecution.java:108)
      		at org.jenkinsci.plugins.pipeline.utility.steps.zip.ZipStepExecution.run(ZipStepExecution.java:58)
      		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
      		at hudson.security.ACL.impersonate(ACL.java:290)
      		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
      		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      Caused: hudson.os.PosixException: Unable to get file permissions null
      	at hudson.util.IOUtils.mode(IOUtils.java:133)
      	at hudson.util.io.TarArchiver.visit(TarArchiver.java:92)
      	at hudson.util.DirScanner.scanSingle(DirScanner.java:49)
      	at hudson.FilePath$ExplicitlySpecifiedDirScanner.scan(FilePath.java:2905)
      	at hudson.FilePath.writeToTar(FilePath.java:2346)
      	at hudson.FilePath.access$2300(FilePath.java:208)
      	at hudson.FilePath$45.invoke(FilePath.java:2283)
      	at hudson.FilePath$45.invoke(FilePath.java:2279)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2827)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:210)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:53)
      	at hudson.remoting.Request$2.run(Request.java:364)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      Caused: java.io.IOException
      	at hudson.FilePath.copyRecursiveTo(FilePath.java:2307)
      	at jenkins.model.StandardArtifactManager.archive(StandardArtifactManager.java:61)
      	at org.jenkinsci.plugins.pipeline.utility.steps.zip.ZipStepExecution.run(ZipStepExecution.java:108)
      	at org.jenkinsci.plugins.pipeline.utility.steps.zip.ZipStepExecution.run(ZipStepExecution.java:58)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1$1.call(SynchronousNonBlockingStepExecution.java:49)
      	at hudson.security.ACL.impersonate(ACL.java:290)
      	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution$1.run(SynchronousNonBlockingStepExecution.java:46)
      	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:748)
      

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            rsandell rsandell
            Reporter:
            nicolasus Nico Navarrete
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated: