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

Sonar QualityGate continues even if the analysis fails

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      We have build step where sonar is executed by pipeline. Once the sonar gate analysis report says it is failed, the build pipeline should get failure and it should stop build. the build continues as it does not return FALSE as a return code.
      [Pipeline] [sonar analysis] }
      [Pipeline] // parallel
      [Pipeline] readMavenPom
      [Pipeline] echo
      Sonar project key is: com.gm.cei.cvc_162609:lbs-crisis:develop
      [Pipeline] qualityGatesBuild
      Build-Step: Quality Gates plugin build passed: FALSE
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] milestone (CQM complete)
      Trying to pass milestone 2
      [Pipeline] }
      $ docker stop --time=1 b5e5d750590dc2568139a1d8aaf18810ebe2c5bfd222f6477e93b7b05c61450f
      $ docker rm -f b5e5d750590dc2568139a1d8aaf18810ebe2c5bfd222f6477e93b7b05c61450f
      [Pipeline] // withDockerContainer
      [Pipeline] milestone (Common Pipeline finished)
      Trying to pass milestone 3
      [Pipeline] stage
      [Pipeline] { (Security Scans)
      [Pipeline] echo
      Security Scans not yet implemented
      [Pipeline] }
      [Pipeline] // stage
      [Pipeline] stage
      [Pipeline] { (Instrument Dependencies)
      [Pipeline] echo
      Instrument Dependencies not yet implemented
      [Pipeline] }
      [Pipeline] // stage
       

        Attachments

          Activity

          There are no comments yet on this issue.

            People

            Assignee:
            sonarteam Sonar Team
            Reporter:
            patheek Patheek Chokshi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated: