Skip to content

Conversation

oleg-nenashev
Copy link
Member

I am working on adding code coverage reporting to https://github.com/jenkinsci/jenkinsfile-runner/ . Unfortunately JaCoCo profile cannot run with the default configuration of the Maven Sure Fire plugin. JaCoCo plugin installs the Java agent and passes configuration through argLine. This argline gets suppressed by the historical SUREFIRE-1588 patch.

This patch fixes the behavior

@jglick
Copy link
Member

jglick commented Oct 14, 2020

@oleg-nenashev I think this is incompatible. @jeffret-b noticed this in jenkinsci/remoting#407 and I saw a similar error elsewhere recently, cannot recall where offhand. You need to define a default value, even if empty, like https://github.com/jenkinsci/plugin-pom/blob/61e2a27d70a9f4e24d32f2acf670de675f9960dc/pom.xml#L51

@jeffret-b
Copy link
Contributor

Yes, the change needs to occur here, with a defined default value. I had to do this in another project years ago so that things would work reliably.

@jeffret-b
Copy link
Contributor

Unless someone is already working on it, I'll prepare a PR for here with an empty argLine.

@oleg-nenashev
Copy link
Member Author

Thanks @jeffret-b ! It would be great

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants