yudong
####报错信息
####配置信息
stage('Code Analysis') {
agent none
steps {
container('maven') {
withCredentials([string(credentialsId : 'sonar' ,variable : 'SONAR_TOKEN' ,)]) {
withSonarQubeEnv('sonar') {
sh '''mvn sonar:sonar -Dsonar.login=$SONAR_TOKEN
'''
timeout(time: 1, unit: 'HOURS') {
waitForQualityGate abortPipeline: 'true'
}
}
}
}
}
}
####目前就是一直卡在 这个报错
No previous SonarQube analysis found on this pipeline execution. Please use the ‘withSonarQubeEnv’ wrapper to run your analysis.