SonarCloud organizations support in SonarLint CLI

17 views
Skip to first unread message

Pierre-Gildas Millon

unread,
Jun 22, 2017, 4:02:36 AM6/22/17
to SonarLint
Hi,

I'm trying to use SonarLint CLI for https://sonarcloud.io/dashboard?id=org.nuxeo%3Anuxeo-ecm but when trying to update bindings I've got the following exception:


sonarlint -u
INFO: Java 1.8.0_101 Oracle Corporation (64-bit)
INFO: Linux 4.4.73-1-MANJARO amd64
INFO: Connected mode (org.nuxeo:nuxeo-ecm)
INFO: Using storage for server 'sonarcloud.io' (last update 22/06/17 09:00)
INFO: Updating binding..
INFO: Using storage for server 'sonarcloud.io' (last update 22/06/17 09:51)
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 416143:51:36.749s
INFO: Final Memory: 34M/429M
INFO: ------------------------------------------------------------------------
ERROR: Error executing SonarLint
ERROR: Module 'org.nuxeo:nuxeo-ecm' is associated to quality profile 'AVxYWA-tFTbgxqUN4qY2' that is not in storage. Global storage is probably outdated. Please update binding.


(complete debug available at https://pastebin.com/1vhJdTEB)

It seems sonarlint -u doesn't fetch organizations quality profiles.

Thanks,

Pierre-Gildas

Julien HENRY

unread,
Jun 26, 2017, 8:47:27 AM6/26/17
to SonarLint
Hi Pierre-Gildas,

We have stopped development of SonarLint for CLI to focus on SonarLint for IDEs. It is unlikely we will add support for organizations.

What is your use case, and what is your preferred IDE?

++

Julien

Pierre-Gildas Millon

unread,
Jun 28, 2017, 4:10:03 AM6/28/17
to Julien HENRY, SonarLint
Hi Julien,

I need to perform an analysis of a project based on PR.
The Github plugin adds a comment with issues count, I'd rather have a diff with the master branch (if not worse than master, then it's fine).

I though of using SonarLint CLI to perform a code analysis with a fast status returned, and then a full analysis using the Maven Plugin for a more complete.

Thanks for your help.

Regards,


--
You received this message because you are subscribed to a topic in the Google Groups "SonarLint" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/sonarlint/g-nh1gi384w/unsubscribe.
To unsubscribe from this group and all its topics, send an email to sonarlint+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/fc3bdab0-b6e8-488f-8215-80c472456c93%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--

Pierre-Gildas MILLON DevOps
Twitter @pgmillon

dev...@nuxeo.com

nuxeo logo

Julien HENRY

unread,
Jun 28, 2017, 4:36:43 AM6/28/17
to Pierre-Gildas Millon, SonarLint
Hi,

The GitHub plugin already do a diff -> only issues that are new compared to what is on the SonarQube server are reported. If you have regular analysis of your master branch (we do one analysis for each push internally) then the GitHub plugin should be very accurate.

And BTW SonarLint CLI is absolutely not designed to be used as a batch tool: this was supposed to be a tool for developers not having a supported IDE.

If I were you, I would stick to use the GitHub plugin, this is our only supported way to do pull request analysis.

++

Julien Henry | SonarSource

Developer

http://sonarsource.com


To unsubscribe from this group and all its topics, send an email to sonarlint+unsubscribe@googlegroups.com.
--

Pierre-Gildas MILLON DevOps
Twitter @pgmillon

dev...@nuxeo.com

nuxeo logo

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarlint/CAPofDbz%3DVs1r1deuwwzZ8y%2B83a2CC4qpCKKBYWuP5nzrQBQaeA%40mail.gmail.com.

Pierre-Gildas Millon

unread,
Jun 28, 2017, 10:13:17 AM6/28/17
to Julien HENRY, SonarLint
Hi,

Just made a test and it works like a charm indeed.
Thanks.

To unsubscribe from this group and all its topics, send an email to sonarlint+...@googlegroups.com.
--

Pierre-Gildas MILLON DevOps
Twitter @pgmillon

dev...@nuxeo.com

nuxeo logo

--
You received this message because you are subscribed to the Google Groups "SonarLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarlint+...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages