请问这是什么原因呢
#流水线的写法
stage('Code Analysis') {
agent none
steps {
container('maven') {
withCredentials([string(credentialsId : 'sonar' ,variable : 'SONAR_TOKEN' ,)]) {
withSonarQubeEnv('sonar') {
sh '''mvn -B sonar:sonar -Dsonar.login=$SONAR_TOKEN -Dsonar.projectKey=demo-test
'''
timeout(unit: 'MINUTES', activity: true, time: 2) {
waitForQualityGate 'true'
}
}
}
}
}
}
INFO] Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report
[INFO] More about the report processing at http://192.168.100.10:31461/api/ce/task?id=AYsJNJSwQlcbNB8aEIH0
[INFO] Analysis total time: 5.880 s
[INFO] ————————————————————————
[INFO] BUILD SUCCESS
[INFO] ————————————————————————
[INFO] Total time: 7.715 s
[INFO] Finished at: 2023-10-07T08:15:22Z
[INFO] ————————————————————————
#日志信息
Wait for SonarQube analysis to be completed and return quality gate status18 ms失败
$$
No previous SonarQube analysis found on this pipeline execution. Please use the ‘withSonarQubeEnv’ wrapper to run your analysis.
$$