gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 207 forks source link

Migrated to sonarqube v7.9.1 API #253

Closed javamachr closed 3 years ago

javamachr commented 4 years ago

Migrated to sonarqube 7.9.1 API, dropped deprecated parts like preview mode - now using always publish.

For 8.2 see https://github.com/gabrie-allaigre/sonar-gitlab-plugin/pull/280

javamachr commented 3 years ago

@javamachr in the releases page of your fork there is no option to download the jar.

Should I build it manually?

Thank you for everything!

Sorry I forgot to publish the release draft - its there and public now.

lucasoares commented 3 years ago

@javamachr I don't know if this is the best place to ask this but I'm having some issues configurating the plugin.

I use detached pipelines (only for merge requests) and I use the merge_request_discussion feature to start discussions instead of just comments.

Using the plugin (I'm first trying with older versions) the external job stage with quality gate result is being created in another pipeline and not on my detached. This is overwriting the pipeline shown in the MR.

The discussion also are not working. If I go to gitlab to reply them, the gitlab UI bugs and no text area is shown.

is this only with me?

EDIT:

Just cloned the project to see how the plugin requests gitlab api to create commit statuses. It is not using the pipeline ID supported by API. I will test it here.

EDIT2:

Appears that the API doesn't support detached pipelines :( Just created: https://gitlab.com/gitlab-org/gitlab/-/issues/300720