QualityGate Error 404: No activity found for task

Hi, community
Have some problems with the response from SonarQube
I’d appreciate your help

log: [INFO] ANALYSIS SUCCESSFUL, BUILD SUCCESS
Timeout set to expire in 1 hr 0 min
Checking status of SonarQube task 'AYnJtEcFz28MpCYxQWEj' on server 'Sonar-Server-10.1'

Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: dd4f5135-6229-4caa-ba3a-dfd9b0fbaacb org.sonarqube.ws.client.HttpException: Error 404 on http://localhost:9000/api/ce/task?id=AYnJtEcFz28MpCYxQWEj : {"errors":[{"msg":"No activity found for task \u0027AYnJtEcFz28MpCYxQWEj\u0027"}]}
Src:

            steps {
                dir('Module') {
                    withSonarQubeEnv('Sonar-Server-10.1'){
                    bat 'mvn clean install sonar:sonar -B -f service/pom.xml -Dsonar.password=admin -Dsonar.login=admin'
                    }
                     timeout(time: 1, unit: 'HOURS') {
                    waitForQualityGate abortPipeline: false, credentialsId: 'SONAR_TOKEN'
                }
                }
            }
        }

Hi,

Welcome to the community!

Can I suggest you reconfigure this based on the docs? There are several mismatches here, and that will just be easier. Also, be sure you configure the credentials globally rather than in each step.

 
HTH,
Ann

Hello, Ann!
Thanks for the reply,
It was a problem with Jenkins - method waitForQualityGate was broken, I brought up a new Jenkins via java -jar and everything worked. Apparently, the Quality Gate plugin broke something in the service.

In principle, the topic can be closed, as SonarQube has nothing to do with it
Regards, Paul

1 Like