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

Sonar-QualityGate plugin fails with java.lang.NumberFormatException:For input string


      We have installed Sonar-Quality-gates plugin(1.31) in Jenkins (2.222.4) and SonarQube version is 7.9.2 

      We have removed the trailing / from the Quality Gate configuration in Manage Jenkins -> Configure System.

      Still we are getting below Error when we tried to configure Quality Gate as Post Build action in Jenkins job.


      java.lang.NumberFormatException: For input string: "<!DOCTYPE html>
       body {
       width: 35em;
       margin: 0 auto;
       font-family: Tahoma, Verdana, Arial, sans-serif;
      <h1>An error occurred"
       at java.lang.NumberFormatException.forInputString(Unknown Source)
       at java.lang.Integer.parseInt(Unknown Source)
       at java.lang.Integer.parseInt(Unknown Source)
       at org.quality.gates.sonar.api.SonarHttpRequesterFactory.majorSonarVersion(SonarHttpRequesterFactory.java:55)
       at org.quality.gates.sonar.api.SonarHttpRequesterFactory.getSonarHttpRequester(SonarHttpRequesterFactory.java:34)
       at org.quality.gates.sonar.api.QualityGatesProvider.<init>(QualityGatesProvider.java:29)

            arkanjoms Rafael Ramos
            prasanna2104 Prasanna Rengarajan
            0 Vote for this issue
            1 Start watching this issue