Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-6893

After submitting the analysis report, log the way to get the status of the compute engine task

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2
    • Component/s: Scanner
    • Labels:
      None

      Description

      Currently, an analysis ends with the following lines:

      ...
      INFO: Analysis reports sent to server in 199ms
      INFO: ANALYSIS SUCCESSFUL, you can browse <sonar.core.serverBaseURL>/dashboard/index/test:multi-language-test
      INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report.
      INFO: ------------------------------------------------------------------------
      INFO: EXECUTION SUCCESS
      INFO: ------------------------------------------------------------------------
      

      It would be useful to also log the compute engine task ID that is returned by the /api/ce/submit WS, so that it can be used (in Jenkins, VSO, ...etc) to call the /api/ce/task in order to display the status of this submitted report.

      Therefore, I would expect the logs to be updated this way:

      ...
      INFO: Analysis reports sent to server in 199ms
      INFO: ANALYSIS SUCCESSFUL, you can browse <sonar.core.serverBaseURL>/dashboard/index/test:multi-language-test
      INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report.
      INFO: More about the report processing at <sonar.core.serverBaseURL>/api/ce/task?id=XXXXX
      INFO: ------------------------------------------------------------------------
      INFO: EXECUTION SUCCESS
      INFO: ------------------------------------------------------------------------
      

        Attachments

          Activity

            People

            • Assignee:
              fabrice.bellingard Fabrice Bellingard
              Reporter:
              fabrice.bellingard Fabrice Bellingard
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: