Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72079

intermittent error unable to guess sonarqube task id

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Major Major
    • sonar-plugin
    • None
    • SonarQube Scanner Plugin 2.15
      Jenkins 2.414.2
      SonarQube Community Edition 10.2 (build 77647)

      there is a very strange error in my jenkins mats, basically without any modification in the repository, the plugin works literally intermittently (this is once every other time... sequentially)

      I've already used several between the analysis and the gate, I've taken time, I've analyzed the agent, but the pattern always repeats itself.

      I also created two identical sequences and ran them one after the other to try to break the sequence, but both maintained their individual sequences.

      this error occours.

      {{Also: org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: d0ddaf18-c5e8-4c05-bc4f-d75bd1134f87
      java.lang.IllegalStateException: Unable to guess SonarQube task id and/or SQ server details. Please use the 'withSonarQubeEnv' wrapper to run your analysis.
      at}}

      my stages:

      {{}}

      stage('SonarQube Analysis SAST'){ steps { logFileFilter { sh 'docker exec builder_${APP_NAME} bash -c "cd /projeto && mvn clean package sonar:sonar -Dsonar.projectKey=${APP_NAME} ${MAVEN_PROFILE} "' } }} stage("Quality Gate SAST") { steps { script { timeout(time: 5, unit: 'MINUTES') { sleep(10) def qg = waitForQualityGate() echo qg.status if (qg.status != 'OK') { warnError("Pipeline aborted due to quality gate failure: '${qg.status}'") { sh('false') } } } } }} 

      {{}}

            rodrigodornellescreare rodrigo
            rodrigodornellescreare rodrigo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: