-
Notifications
You must be signed in to change notification settings - Fork 25
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
SonarQube no measure have been collecting #873
Comments
Hi @ortegaantunes , This message means that Ontrack could not find any corresponding measure to your build in SonarQube. The criteria used to find measures in SonarQube are:
I suspect that in your case, the project key is wrong, but it's difficult for me to assert without more detail. It does not prevent the fact that the Ontrack documentation lacks information in many respects. It's actually there but under refactoring and I'll use this very issue to restore it asap. Just some side remarks:
|
Hi @dcoraboeuf I'll check the project key. I think that the "groupId" is generated when you have used Maven to build the project, right? So, I can be wrong, it is just an idea. I have been trying to test the Ontrack Library in parallel, but currently, my SCM is Bitbucket. I will take your tip, and improve the post action. |
Yes, the project key in SonarQube should be generated from your About the Jenkins library to support Bitbucket, I can do that quickly. I've created ontrack-jenkins-cli-pipeline#14 (Bitbucket Cloud) and ontrack-jenkins-cli-pipeline#15 (Bitbucket Cloud) |
Ya, the question is I'm not using Maven. I'll try to use the frontend-maven-plugin to my NodeJS project, but would nice to have examples using, npm, nuget etc =) |
@dcoraboeuf all tests without success. I also did another installation to SonarQube, to ensure that the communication and auth has been working OK. Are there specific log or screenshot that I can send to you? I need to consider Sonar analysis which are non-Maven project. |
@ortegaantunes , would it be possible to get access to your BTW, there is no reason why you should not succeed in dealing with non-Maven projects. I've used Ontrack & SonarQube for Gradle, NodeJS, Go, etc. projects. |
For sure. I'll send to you on your email. Yes. I'm agree with you, I think it is pretty simple, and maybe it can be my mistake. Thanks a lot for helping me. |
You're welcome. The main difficulty is to align the way Ontrack looks for the information of a given build in SonarQube. The API of SonarQube is not the simplest and easiest to understand... |
Once you can use the https://github.com/nemerosa/ontrack-jenkins-cli-pipeline/ library (after nemerosa/ontrack-jenkins-cli-pipeline#15 is fixed for your case) you'll get some configuration out of the box, without having to do it yourself. |
Attachments received via email, thanks. |
I sent the email to you. Ok let's try the cli/library as soon it is available. |
Hi @ortegaantunes , sorry for the delay (I'm pretty busy at work and also not at work). I see in the different documents that your project (in Ontrack) is configured to use Both must be aligned so that Ontrack can find its information in SQ. Either you change it in Ontrack or you configure your scan so that the project key is the same than in Ontrack. Best regards, |
Hi @dcoraboeuf Thanks a lot for your time. The keys are the same on both sides. I sent the wrong screenshots for you, sorry. I sent now the correct screenshot in your email. Rafael |
Hello @dcoraboeuf
I have a problem to extract measures from SonarQube. Currently, when the Sonar step is executed on Jenkins build, the below message is showed on Ontrack Log.
The Ontrack configuration at project level is:
The Ontrack configuration at Admin settings is:
The stage on Jenkins is like:
Any tips to fix this? The Ontrack version is 4.0.1
The text was updated successfully, but these errors were encountered: