[JIRA] (JENKINS-41696) Recording fingerprints ignores the excludes when archiving artifacts

1 view
Skip to first unread message

tom.ghyselinck@excentis.com (JIRA)

unread,
Feb 3, 2017, 4:06:02 AM2/3/17
to jenkinsc...@googlegroups.com
Tom Ghyselinck created an issue
 
Jenkins / Bug JENKINS-41696
Recording fingerprints ignores the excludes when archiving artifacts
Issue Type: Bug Bug
Assignee: Unassigned
Components: core
Created: 2017/Feb/03 9:05 AM
Environment: Jenkins 1.609.3 LTS
Priority: Major Major
Reporter: Tom Ghyselinck

Seen while searching for workaround for JENKINS-41695:

We have a project which archives some files.
We exclude some files to be archived.
When fingerprinting all artifacts, it ignores the exclude setting.

Our Job configuration is as follows:

  • Post-Build Actions:
    • Archive the Artifacts
      • Files to archive: install/**/*
      • Excludes: install/usr/lib/debug/.build-id/**/*
      • Fingerprint all archive artifacts: True
      • Use default excludes: True

Now, we still see the failure when archiving symbolic links (which should be excluded!)

Archiving artifacts
Recording fingerprints
ERROR: Failed to record fingerprints
java.io.IOException: remote file operation failed: /var/jenkins/workspace/MyJob at hudson.remoting.Channel@3b0647d7:ubuntu-12-04-amd64-4: java.io.IOException: Failed to compute digest for /var/jenkins/workspace/MyJob/install/usr/lib/debug/.build-id/12/8ac6549dedadda10425743f1f64e810adc301f
	at hudson.FilePath.act(FilePath.java:985)
	at hudson.FilePath.act(FilePath.java:967)
	at hudson.tasks.Fingerprinter.record(Fingerprinter.java:212)
	at hudson.tasks.Fingerprinter.perform(Fingerprinter.java:124)
	at hudson.tasks.ArtifactArchiver.perform(ArtifactArchiver.java:221)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:74)
	at hudson.plugins.templateproject.ProxyPublisher.perform(ProxyPublisher.java:85)
	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:776)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:723)
	at hudson.model.Build$BuildExecution.post2(Build.java:183)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:670)
	at hudson.model.Run.execute(Run.java:1763)
	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:381)
Caused by: java.io.IOException: Failed to compute digest for /var/jenkins/workspace/MyJob/install/usr/lib/debug/.build-id/12/8ac6549dedadda10425743f1f64e810adc301f
	at hudson.tasks.Fingerprinter$2.invoke(Fingerprinter.java:230)
	at hudson.tasks.Fingerprinter$2.invoke(Fingerprinter.java:212)
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)
	at hudson.remoting.UserRequest.perform(UserRequest.java:121)
	at hudson.remoting.UserRequest.perform(UserRequest.java:49)
	at hudson.remoting.Request$2.run(Request.java:326)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
	at ......remote call to ubuntu-12-04-amd64-4(Native Method)
	at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1413)
	at hudson.remoting.UserResponse.retrieve(UserRequest.java:221)
	at hudson.remoting.Channel.call(Channel.java:778)
	at hudson.FilePath.act(FilePath.java:978)
	... 15 more
Caused by: java.io.FileNotFoundException: /var/jenkins/workspace/MyJob/install/usr/lib/debug/.build-id/12/8ac6549dedadda10425743f1f64e810adc301f (No such file or directory)
	at java.io.FileInputStream.open(Native Method)
	at java.io.FileInputStream.<init>(FileInputStream.java:146)
	at hudson.Util.getDigestOf(Util.java:639)
	at hudson.FilePath$38.invoke(FilePath.java:1924)
	at hudson.FilePath$38.invoke(FilePath.java:1921)
	at hudson.FilePath.act(FilePath.java:989)
	at hudson.FilePath.act(FilePath.java:967)
	at hudson.FilePath.digest(FilePath.java:1921)
	at hudson.tasks.Fingerprinter$2.invoke(Fingerprinter.java:228)
	at hudson.tasks.Fingerprinter$2.invoke(Fingerprinter.java:212)
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2688)
	at hudson.remoting.UserRequest.perform(UserRequest.java:121)
	at hudson.remoting.UserRequest.perform(UserRequest.java:49)
	at hudson.remoting.Request$2.run(Request.java:326)
	at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68)
	at java.util.concurrent.FutureTask.run(FutureTask.java:262)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
	at java.lang.Thread.run(Thread.java:745)
Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

dbeck@cloudbees.com (JIRA)

unread,
Feb 4, 2017, 9:51:02 AM2/4/17
to jenkinsc...@googlegroups.com
Daniel Beck resolved as Cannot Reproduce
 

Please reopen if this occurs on a recent release. This baseline is almost two years old.

(I'm not trying to be rude here by resolving immediately, just spent way too much time trying to reproduce issues that have long been fixed.)

Change By: Daniel Beck
Status: Open Resolved
Resolution: Cannot Reproduce

o.v.nenashev@gmail.com (JIRA)

unread,
Jan 12, 2019, 5:02:02 PM1/12/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Labels: fingerprints newbie-friendly
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mit4dev@gmail.com (JIRA)

unread,
Feb 27, 2019, 5:53:02 AM2/27/19
to jenkinsc...@googlegroups.com

mit4dev@gmail.com (JIRA)

unread,
Feb 27, 2019, 5:53:03 AM2/27/19
to jenkinsc...@googlegroups.com
Mit Naria started work on Bug JENKINS-41696
 
Change By: Mit Naria
Status: Open In Progress

o.v.nenashev@gmail.com (JIRA)

unread,
May 16, 2019, 12:51:27 AM5/16/19
to jenkinsc...@googlegroups.com
Oleg Nenashev resolved as Fixed
Change By: Oleg Nenashev
Status: In Progress Resolved
Resolution: Fixed
Released As: Jenkins 2.177
Reply all
Reply to author
Forward
0 new messages