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

Update Win analysis command in tutorial

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.5
    • Component/s: Web
    • Labels:
      None
    • Edition:
      Community
    • Production Notes:
      None

      Description

      When Windows is selected, the generated commands look like this:

      sonar-scanner.bat -Dsonar.projectKey=test -Dsonar.sources=. -Dsonar.host.url=http://127.0.0.1:9000 -Dsonar.login=ca58e46e32f14861e62faf52d83b398ded2b55b

      This works fine in the classic Command Prompt (cmd.exe) but not in a PowerShell prompt. To work in both Command Prompt and PowerShell this small adjustment needs to be done:

      sonar-scanner.bat -D"sonar.projectKey=test" -D"sonar.sources=." -D"sonar.host.url=http://127.0.0.1:9000" -D"sonar.login=ca58e46e32f14861e62faf52d83b398ded2b55b"

      i.e. quote the arguments to each -D

        Attachments

          Activity

            People

            Assignee:
            wouter.admiraal Wouter Admiraal
            Reporter:
            ann.campbell.2 Ann Campbell
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: