Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Can't get sonar-stash to add comments #204

@royteeuwen

Description

@royteeuwen

We have sonar installed and the sonar stash plugin as well, but when using the plugin, we only get the overview comment and not the comments inline on the diff view.

Our setup:
Jenkins with a pipeline step for develop:

withSonarQubeEnv('Sonar PRO') {
                    script {
                        def SONAR_SCANNER = tool "SonarQube Runner Latest Version"
                        sh "${SONAR_SCANNER}/bin/sonar-scanner -X"
                    }
                }

Jenkins with a pipeline for the PR:

withSonarQubeEnv('Sonar PRO') {
                    script {
                        def SONAR_SCANNER = tool "SonarQube Runner Latest Version"
                        sh "${SONAR_SCANNER}/bin/sonar-scanner -X  \
                          -Dsonar.analysis.mode=preview \
                          -Dsonar.stash.notification \
                          -Dsonar.stash.project=PROJECT \
                          -Dsonar.stash.repository.root=${WORKSPACE} \
                          -Dsonar.stash.repository=repo \
                          -Dsonar.stash.pullrequest.id=20 \
                          -Dsonar.stash.login=${CREDENTIALS_USR} \
                          -Dsonar.stash.password.variable=CREDENTIALS_PSW"
                    }
                }

It also seems that even when adding an obvious nullpointer exception, it states "No new issues detected!"

Any guidelines on how to debug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions