Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide better error message when using old version of Scanner for MSBuild #489

Closed
michalb-sonar opened this issue Jun 28, 2017 · 0 comments
Assignees
Labels
Type: Bug Exceptions and blocking issues during analysis.
Milestone

Comments

@michalb-sonar
Copy link
Contributor

michalb-sonar commented Jun 28, 2017

Repro steps

Run analysis with most recent SonarC# and a Scanner for MSBuild 2.1 or less.

Expected behavior

An error stating the scanner version is not supported and the scanner needs to be upgraded. Perhaps with a link to how to downgrade C# plugin as a workaround.

Actual behavior

Could not find a file on the SonarQube server. Url: http://sonarqubeserver/static/csharp/SonarQube.MSBuild.Runner.Implementation.zip

Failed to update the SonarQube Scanner for MSBuild binaries. Check the server url, verify that the C# plugin is correctly installed on the SonarQube server and that the SonarQube server has been restarted.

Pre-processing failed. Exit code: 1

ERROR: Execution of SonarQube Scanner for MSBuild failed (exit code 1)

Known workarounds

  • Downgrade C# plugin to 5.11 (build 1761).
  • Upgrade the scanner to 2.2 or superior (may not always be an option).

Related information

  • SonarC# Version: 6.0+
  • Scanner for MSBuild Version: 2.1 and older.
@michalb-sonar michalb-sonar added the Type: Bug Exceptions and blocking issues during analysis. label Jun 28, 2017
@michalb-sonar michalb-sonar added this to the near-future milestone Jun 28, 2017
@michalb-sonar michalb-sonar self-assigned this Jun 28, 2017
@michalb-sonar michalb-sonar modified the milestones: near-future, 6.1 Jun 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Exceptions and blocking issues during analysis.
Projects
None yet
Development

No branches or pull requests

2 participants