[JIRA] (JENKINS-58438) Maven Multibranch Project sonar scan issue

6 views
Skip to first unread message

sander_joseph@hotmail.com (JIRA)

unread,
Jul 11, 2019, 5:32:02 AM7/11/19
to jenkinsc...@googlegroups.com
Sander Joseph created an issue
 
Jenkins / Improvement JENKINS-58438
Maven Multibranch Project sonar scan issue
Issue Type: Improvement Improvement
Assignee: Matthew DeTullio
Components: multi-branch-project-plugin (not Pipeline), sonar
Created: 2019-07-11 09:31
Priority: Major Major
Reporter: Sander Joseph

In maven multibranch project , while doing incremental build on the project , the build i sgood but the running sonar on top of that is not working fine.

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.6.0.1398:sonar (default-cli) on project XXXXX: Maven session does not declare a top level project -> [Help 1]

Project Structure:

Parent:

     ->pom.xml (having 2 modules - ModuleA and ModuleB)

         ModuleA

               -->pom.xml

        ModuleB

              --> pom.xml

 

now i have tried incremental build so the command that gets executed for clean install is 

pom.xml -amd -pl com.root.app:ModuleA clean install

but when i try to run pom.xml -amd -pl com.root.app:ModuleA sonar:sonar

 

it fails saying  Maven session does not declare a top level project -> [Help 1]
[ERROR].

 

How can i do sonar on incremental maven build.

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

sander_joseph@hotmail.com (JIRA)

unread,
Jul 11, 2019, 7:31:02 AM7/11/19
to jenkinsc...@googlegroups.com
Sander Joseph assigned an issue to Sonar Team
Change By: Sander Joseph
Assignee: Matthew DeTullio Sonar Team
Reply all
Reply to author
Forward
0 new messages