ERROR You're not authorized to analyze this project or the project doesn't exist on SonarQube and y

    agent {
        label 'agent-dso'
    }

    environment {
        SONAR_PROJECT_KEY = 'mika'
        SONAR_SCANNER_HOME = tool 'sonar'
    }

    stages {

        stage('Sonar Scanner') {
            steps {
            withCredentials([string(credentialsId: 'sonar-token-dso', variable: 'sonar_token')]) {
                    withSonarQubeEnv('sonarqube') {
                        sh '''
                        ${SONAR_SCANNER_HOME}/bin/sonar-scanner \
                        -Dsonar.projectKey=${SONAR_PROJECT_KEY} \
                        -Dsonar.sources=. \
                        -Dsonar.host.url=https://sonar.jobseeker.software \
                        -Dsonar.qualitygate.wait=true \
                        -Dsonar.scm.provider=git \
                        -Dsonar.token=${sonar_token}
                        '''
                    }
                }
            }
        }
    }
}

Hey there.

You didn’t fill out the template post, or actually ask a question or post logs in the body of your post. Please put some additional effort in. This is a community forum.