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

codeCoverageToolOption: JaCoCo fails for multi-module builds (Maven@3) #14294

Closed
henriklynggaard opened this issue Jan 28, 2021 · 5 comments
Closed
Labels
Area: ABTT Akvelon Build Tasks Team area of work Area: Release stale Task: Maven

Comments

@henriklynggaard
Copy link

Type: Bug
Task Name: Maven@3
Server: Azure Pipelines
Agent: Hosted - ubuntu 16.04

Note: This is similar to #12067 but I could not find the new issue the reporter was asked to open hence creating a new. Sorry for the potential duplicate

Issue Description

I added a second module to my project and suddenly the piplines started failing with

When using "codeCoverageToolOption: JaCoCo" in a multi-module build like this

- task: Maven@3
    inputs:
      mavenPomFile: 'pom.xml'
      javaHomeOption: 'JDKVersion'
      jdkVersionOption: '1.8'
      jdkArchitectureOption: 'x64'
      publishJUnitResults: true
      testResultsFiles: '**/surefire-reports/TEST-*.xml'
      codeCoverageToolOption: JaCoCo

The result is a antrun error about not finding the report

2021-01-28T07:40:59.3526318Z [INFO] ------------------------------------------------------------------------
2021-01-28T07:40:59.3605566Z [ERROR] Failed to execute goal org.apache.maven.plugins:maven-antrun-plugin:1.8:run (default) on project VstsReport: An Ant BuildException has occured: Unable to read execution data file /home/vsts/work/1/s/CCReport43F6D5EF/jacoco.exec
2021-01-28T07:40:59.3638728Z [ERROR] around Ant part ...<report>... @ 8:11 in /home/vsts/work/1/s/target/antrun/build-main.xml: /home/vsts/work/1/s/CCReport43F6D5EF/jacoco.exec (No such file or directory)
2021-01-28T07:40:59.3640117Z [ERROR] -> [Help 1]
2021-01-28T07:40:59.3640847Z [ERROR] 
2021-01-28T07:40:59.3641810Z [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
2021-01-28T07:40:59.3645662Z [ERROR] Re-run Maven using the -X switch to enable full debug logging.
2021-01-28T07:40:59.3650367Z [ERROR] 
2021-01-28T07:40:59.3689300Z [ERROR] For more information about the errors and possible solutions, please read the following articles:
2021-01-28T07:40:59.3690469Z [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
@DaniilShmelev DaniilShmelev added Area: ABTT Akvelon Build Tasks Team area of work Task: Maven and removed triage labels Jan 28, 2021
@DaniilShmelev
Copy link
Contributor

Hi @henriklynggaard! Could you please provide your pipeline .yml and pom.xml?

@henriklynggaard
Copy link
Author

This is simplified version that still breaks my pipeline

Attaching files
issue-14294.zip

@anatolybolshakov
Copy link
Contributor

This seems to be duplicate of #14130

@henriklynggaard
Copy link
Author

Similar at least but different task.

@github-actions
Copy link

github-actions bot commented Aug 7, 2021

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work Area: Release stale Task: Maven
Projects
None yet
Development

No branches or pull requests

5 participants