Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Source file copying fails since upgrade to 1.1.2 #140

Closed
plnordquist opened this issue Jan 23, 2020 · 5 comments
Closed

Source file copying fails since upgrade to 1.1.2 #140

plnordquist opened this issue Jan 23, 2020 · 5 comments

Comments

@plnordquist
Copy link

Environment

Jenkins 2.204.1 LTS
Code Coverage API Plugin 1.1.2
Maven 3.6.3
jacoco-maven-plugin 0.8.4
Spring Boot 2.1.8

Issue

I'm having issues with this plugin and source file copying since I upgraded to 1.1.2. The exception I'm seeing is below, it's trying to grab files from after a maven build using jacoco-maven-plugin while building a Spring Boot project.

Starting copy source file <file>.java. 
java.io.IOException: Unable to find source file <file>.java in workspace /var/lib/jenkins/jenkins-home/workspace/<multibranch-workspace>
	at io.jenkins.plugins.coverage.source.DefaultSourceFileResolver$SourceFilePainter.invoke(DefaultSourceFileResolver.java:147)
	at io.jenkins.plugins.coverage.source.DefaultSourceFileResolver$SourceFilePainter.invoke(DefaultSourceFileResolver.java:127)
	at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3069)
	at hudson.remoting.UserRequest.perform(UserRequest.java:211)
	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)
	Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to <node-name>
		at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1741)
		at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
		at hudson.remoting.Channel.call(Channel.java:955)
		at hudson.FilePath.act(FilePath.java:1069)
		at hudson.FilePath.act(FilePath.java:1058)
		at io.jenkins.plugins.coverage.source.DefaultSourceFileResolver.lambda$resolveSourceFiles$0(DefaultSourceFileResolver.java:92)
		at java.util.HashMap.forEach(HashMap.java:1289)
		at io.jenkins.plugins.coverage.source.DefaultSourceFileResolver.resolveSourceFiles(DefaultSourceFileResolver.java:81)
		at io.jenkins.plugins.coverage.CoverageProcessor.performCoverageReport(CoverageProcessor.java:117)
		at io.jenkins.plugins.coverage.CoveragePublisher.perform(CoveragePublisher.java:96)
		at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
		at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
		at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
		at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
		... 4 more
@smithhannahm
Copy link

It looks like PR #136 addresses this

@alexeyulasevich
Copy link

Does somebody know any workaround?

@bgreen1005 bgreen1005 mentioned this issue Feb 21, 2020
@bgreen1005
Copy link
Contributor

I've created a PR to fix this issue :) #142

1 similar comment
@bgreen1005
Copy link
Contributor

I've created a PR to fix this issue :) #142

@cizezsy
Copy link
Contributor

cizezsy commented Mar 15, 2020

This should be fixed in version 1.14. Thanks very much for @bgreen1005 's help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants