jenkinsci/jenkinsfile-runner

unstash error

lhupfeldt opened this issue · 0 comments

Jenkins and plugins versions report

Environment
Paste the output here

What Operating System are you using (both controller, and any agents involved in the problem)?

Linux

Reproduction steps

Write Jenkinsfile with stash/unstash
The Jenkinsfile executes correctly in Jenkins

Expected Results

unstash is working
i.e. pipeline working in Jenkins should work in jenkinsfile-runner

Actual Results

Resume disabled by user, switching to high-performance, low-durability mode.
Loading library xxx-pipeline-library@v0.7.4
Examining devops/xxx-pipeline-library
Attempting to resolve v0.7.4 as a branch
Attempting to resolve v0.7.4 as a tag
Resolved v0.7.4 as tag v0.7.4 at revision 748b8e7b37fa2ee4e7628b3286d0366ae548218e
The recommended git tool is: NONE
using credential svc-github-service-user
Cloning the remote Git repository
Cloning with configured refspecs honoured and with tags
Cloning repository https://<url deleted>
 > git init <path deleted>/workspace@libs/58cd27c328814497c1bc59bbeb0e2227e7a23381856782e25f03cca1969bf696 # timeout=10
Fetching upstream changes from https://<url deleted>
 > git --version # timeout=10
 > git --version # 'git version 2.35.1'
using GIT_ASKPASS to set credentials Credential used for GitHub Organisation
 > git fetch --tags --force --progress -- https://<url deleted>.git +refs/tags/v0.7.4:refs/tags/v0.7.4 # timeout=10
 > git config remote.origin.url https://<url deleted>.git # timeout=10
 > git config --add remote.origin.fetch +refs/tags/v0.7.4:refs/tags/v0.7.4 # timeout=10
 > git config remote.origin.url https://<url deleted>.git # timeout=10
Fetching with tags
Fetching upstream changes from https://<url deleted>.git
using GIT_ASKPASS to set credentials Credential used for GitHub Organisation
 > git fetch --tags --force --progress -- https://<url deleted>.git +refs/tags/v0.7.4:refs/tags/v0.7.4 # timeout=10
Checking out Revision 748b8e7b37fa2ee4e7628b3286d0366ae548218e (v0.7.4)
 > git config core.sparsecheckout # timeout=10
 > git checkout -f 748b8e7b37fa2ee4e7628b3286d0366ae548218e # timeout=10
Commit message: "Bugfix/pos 12264 httprequest action repeats (#29)"
[Pipeline] Start of Pipeline
[Pipeline] properties
[Pipeline] newBuildInfo
[Pipeline] stage
[Pipeline] { (Setup)
[Pipeline] node
Running on Jenkins in <path deleted>/workspace
[Pipeline] {
[Pipeline] checkout
[Pipeline] pwd
[Pipeline] readMavenPom
[Pipeline] pwd
[Pipeline] readYaml
[Pipeline] newBuildInfo
[Pipeline] unstash
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
java.io.EOFException: Unexpected end of ZLIB input stream
	at com.jcraft.jzlib.InflaterInputStream.fill(InflaterInputStream.java:186)
	at com.jcraft.jzlib.InflaterInputStream.read(InflaterInputStream.java:106)
	at org.apache.commons.compress.archivers.tar.TarArchiveInputStream.read(TarArchiveInputStream.java:738)
	at java.base/java.io.InputStream.read(InputStream.java:205)
	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1309)
	at org.apache.commons.io.IOUtils.copy(IOUtils.java:978)
	at org.apache.commons.io.IOUtils.copyLarge(IOUtils.java:1282)
	at org.apache.commons.io.IOUtils.copy(IOUtils.java:953)
	at hudson.util.IOUtils.copy(IOUtils.java:53)
	at hudson.FilePath.readFromTar(FilePath.java:2854)
Caused: java.io.IOException: Failed to extract code.tar.gz
	at hudson.FilePath.readFromTar(FilePath.java:2864)
	at hudson.FilePath.access$500(FilePath.java:214)
	at hudson.FilePath$UntarLocal.invoke(FilePath.java:646)
	at hudson.FilePath$UntarLocal.invoke(FilePath.java:639)
	at hudson.FilePath.act(FilePath.java:1171)
	at hudson.FilePath.act(FilePath.java:1154)
	at hudson.FilePath.untar(FilePath.java:622)
	at org.jenkinsci.plugins.workflow.flow.StashManager.unstash(StashManager.java:161)
	at org.jenkinsci.plugins.workflow.support.steps.stash.UnstashStep$Execution.run(UnstashStep.java:77)
	at org.jenkinsci.plugins.workflow.support.steps.stash.UnstashStep$Execution.run(UnstashStep.java:64)
	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
	at java.base/java.lang.Thread.run(Thread.java:829)
Finished: FAILURE

Anything else?

I shall attempt to provide a minimal example if needed.