Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 542882

Summary: Move PDE Sonar check to SonarCloud
Product: [Eclipse Project] PDE Reporter: Lars Vogel <Lars.Vogel>
Component: UIAssignee: PDE-UI-Inbox <pde-ui-inbox>
Status: RESOLVED WONTFIX QA Contact:
Severity: normal    
Priority: P3 CC: julian.honnen, karsten.thoms, Lars.Vogel, mistria, Vikas.Chandra
Version: 4.10   
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Lars Vogel CLA 2018-12-18 04:44:19 EST
We should migrate our PDE Sonar check to SonarCloud as the Jenkins fails since a year.
Comment 1 Lars Vogel CLA 2018-12-18 04:46:43 EST
Mickael, any pointer for the correct process? Do I use my personal Github user? Do I have to join an Github organization?
Comment 2 Mickael Istria CLA 2018-12-18 04:52:26 EST
(In reply to Lars Vogel from comment #1)
> Mickael, any pointer for the correct process? Do I use my personal Github
> user? Do I have to join an Github organization?

For m2e, I've logged in with my personal GitHub account and created a SonarCloud "Eclipse m2e" organization which contains the project.
Comment 3 Lars Vogel CLA 2018-12-18 04:56:44 EST
For testing a adjusted https://ci.eclipse.org/pde/job/eclipse.pde.ui-SonarQube/ to point to a PDE UI configuration I created on https://sonarcloud.io/dashboard?id=vogellacompany_eclipse.pde.ui

@Mickael, please advice if you are aware of a better process.
Comment 4 Karsten Thoms CLA 2018-12-18 04:58:20 EST
> For m2e, I've logged in with my personal GitHub account and created a
> SonarCloud "Eclipse m2e" organization which contains the project.

Shouldn't the EF create such an organization?
Comment 5 Mickael Istria CLA 2018-12-18 04:59:48 EST
> @Mickael, please advice if you are aware of a better process.

I didn't check the details, but basically if you added the Maven step suggested by SonarCloud, it should work.
See configuration of https://ci.eclipse.org/m2e/job/m2e-core-tests/ as example.

> Shouldn't the EF create such an organization?

Why adding a bottleneck when we don't need one?
Comment 6 Lars Vogel CLA 2018-12-19 02:33:28 EST
(In reply to Lars Vogel from comment #3)
> For testing a adjusted
> https://ci.eclipse.org/pde/job/eclipse.pde.ui-SonarQube/ to point to a PDE
> UI configuration I created on
> https://sonarcloud.io/dashboard?id=vogellacompany_eclipse.pde.ui
> 
> @Mickael, please advice if you are aware of a better process.

Mickael, I get invalid user and pw in the test build setup. Should the sonar.login key not just work.

ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project eclipse.pde.ui: Not authorized. Please check the properties sonar.login and sonar.password. -> [Help 1]
Comment 7 Mickael Istria CLA 2018-12-19 02:50:35 EST
Just copying and putting as build step the exact command given by SonarCloud when.creating the project there should work.
But 3.3.603 is a old version of the plugin, try a more recent one (see m2e job for that too)
Comment 8 Lars Vogel CLA 2019-01-25 07:47:52 EST
*** Bug 542521 has been marked as a duplicate of this bug. ***
Comment 9 Julian Honnen CLA 2019-09-03 02:00:37 EDT
The sonar job is failing:

[ERROR] Failed to execute goal org.sonarsource.scanner.maven:sonar-maven-plugin:3.3.0.603:sonar (default-cli) on project eclipse.pde.ui: Not authorized. Please check the properties sonar.login and sonar.password. -> [Help 1]


https://ci.eclipse.org/pde/job/eclipse.pde.ui-SonarQube/

Can you please check your credentials?
Comment 10 Lars Vogel CLA 2020-06-09 10:14:38 EDT
No plans to work on this.