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

Jenkins stash failed after npm install

    Details

    • Similar Issues:

      Description

      During my build process, I run NPM install among other tools, before stashing the contents of the working directory for later stages. However, we've noticed that when NPM install is used, the stash at the end of this stage throws a Java I/O exception, saying that the archive contains unclosed entries. Disabling the NPM install stops this issue from occurring. The I/O exception is shown below: 

      Also:   hudson.remoting.Channel$CallSiteStackTrace: Remote call to  (sir-r9rg4htg)
      		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
      		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:357)
      		at hudson.remoting.Channel.call(Channel.java:955)
      		at hudson.FilePath.act(FilePath.java:1089)
      		at hudson.FilePath.act(FilePath.java:1078)
      		at hudson.FilePath.archive(FilePath.java:481)
      		at org.jenkinsci.plugins.workflow.flow.StashManager.stash(StashManager.java:107)
      		at org.jenkinsci.plugins.workflow.support.steps.stash.StashStep$Execution.run(StashStep.java:113)
      		at org.jenkinsci.plugins.workflow.support.steps.stash.StashStep$Execution.run(StashStep.java:101)
      		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)
      java.io.IOException: This archives contains unclosed entries.
      	at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.finish(TarArchiveOutputStream.java:225)
      	at org.apache.commons.compress.archivers.tar.TarArchiveOutputStream.close(TarArchiveOutputStream.java:241)
      	at hudson.util.io.TarArchiver.close(TarArchiver.java:127)
      	at hudson.FilePath$Archive.invoke(FilePath.java:498)
      	at hudson.FilePath$Archive.invoke(FilePath.java:483)
      	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3082)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:212)
      	at hudson.remoting.UserRequest.perform(UserRequest.java:54)
      	at hudson.remoting.Request$2.run(Request.java:369)
      	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      Finished: FAILURE
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mdevarakonda Murty Devarakonda
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: