slam-it / sonar-quality-gates-maven-plugin

1 stars 6 forks source link

Whats the correct version? #4

Open Shweta-Deshpande opened 4 years ago

Shweta-Deshpande commented 4 years ago

Maven does not allow building with a version of type "1.0-SNAPSHOT". What is the release version for this plugin. I tried 4.0.0 and 1.0 but my build fails with version not found error.

slam-it commented 4 years ago

Take at look at this fork https://github.com/Hack23/sonar-quality-gates-maven-plugin. This one has a released Version

Op 5 mrt. 2020 om 21:59 heeft Shweta-Deshpande notifications@github.com het volgende geschreven:

 Maven does not allow building with a version of type "1.0-SNAPSHOT". What is the release version for this plugin. I tried 4.0.0 and 1.0 but my build fails with version not found error.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

Shweta-Deshpande commented 4 years ago

Thanks! Additionally, how do I provide the sonar username and password to the plugin? Currently I provide only the host URL and Sonar returns a 401 error.

I don't have a sonar profile in the settings.xml as stated in the Readme. Is that required?

r0bb3n commented 4 years ago

@Shweta-Deshpande I created a quick fix for that: https://github.com/r0bb3n/sonar-quality-gates-maven-plugin/tree/feature/add-auth-support So if you like, you can compile it on your own and use it with a custom release. (PR supplied)

But the used API is marked as internal by SonarQube and this specific endpoint does not address/respects branches, so you will always get the result of the master.