Uploaded image for project: 'SonarQube Scanner for Jenkins'
  1. SonarQube Scanner for Jenkins
  2. SONARJNKNS-282

Unable to collect task id when build is on a remote slave

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.6.1
    • Component/s: None
    • Labels:
      None

      Description

      When trying to read the report-task.txt file we should not use java.io.File access but instead use the Jenkins FilePath API to support remote FS.

      As a result, when build occurs on a remote slave:

      • quality gate widget is not displayed
      • waitForQualityGate() pipeline step fails with message:

        java.lang.IllegalStateException: Unable to get SonarQube task id and/or server name. If you are not using the 'withSonarQubeEnv' wrapper to run your analysis, you have to pass the attributes manually to this step.

      See thread: https://groups.google.com/forum/#!msg/sonarqube/z_K_wz_8Vw8/-JJ0S-7ECAAJ

        Attachments

          Activity

            People

            • Assignee:
              julien.henry Julien Henry
              Reporter:
              julien.henry Julien Henry
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: