SonarQube Msbuild Runner and Jenkins Unauthorized Error


I am getting the following error when trying to run Sonarqube MSBuild Runner with Jenkins. I am using SonarQube 4.5 and MSBuild SonarQube Runner 1.1. Any suggestions on how to resolve?

Unhandled Exception: System.Net.WebException: The remote server returned an error: (401) Unauthorized. at System.Net.WebClient.DownloadDataInternal(Uri address, WebRequest& request) at System.Net.WebClient.DownloadString(Uri address) at System.Net.WebClient.DownloadString(String address) at SonarQube.TeamBuild.PreProcessor.WebClientDownloader.Download(String url) at SonarQube.TeamBuild.PreProcessor.SonarWebService.GetProperties(String projectKey) at SonarQube.TeamBuild.PreProcessor.TeamBuildPreProcessor.FetchArgumentsAndRulesets(ProcessedArgs args, TeamBuildSettings settings, ILogger logger, IDictionary`2& serverSettings) at SonarQube.TeamBuild.PreProcessor.TeamBuildPreProcessor.DoExecute(ProcessedArgs args, ILogger logger) at SonarQube.TeamBuild.PreProcessor.TeamBuildPreProcessor.Execute(String[] args, ILogger logger) at SonarQube.TeamBuild.PreProcessor.Program.Main(String[] args) Pre-processing succeeded.


You need to look at the configuration file SonarQube.Analysis.xml. Confirm that the property sonar.host.url is correct and you have configured a valid sonar.login and sonar.password. The user you specified must be able to execute analysis. Open the SonarQube portal as admin and activate Administration - Security - Global Permissions. The user must be specified in Execute Analysis or must be a member of a group specified in Execute Analysis. Provide more details if this does not help


  • facebook login using oauth fails on live server
  • DownloadString returns a 404 Error: Site needs a User-Agent Header
  • Deserialize JSON without key
  • Using WebClient to ping a web site
  • Detect site login url in Application_End
  • The length of the string exceeds the value set on the maxJsonLength property.c#
  • how to use jsr 223 preprocessor in jmeter? [closed]
  • Write-progress trouble with foreach loop
  • Acquiring new access token using refresh token adal js
  • Stringify object name in Lua
  • How I fix a “GADInsterstitial.h” file not found… but it is in my list?
  • SugarORM query from multiple tables?
  • Vim syntax highlighting for multiline fortran openmp directives
  • How to inject the right version information into the resources at compile time?
  • Xamarin.IOS.dll use of Advertising identifier (IDFA)
  • How to configure email address for a user in Microsoft Azure AD?
  • Fake http server for testing purpose
  • Character strings in Fortran: Portable LEN_TRIM and LNBLNK?
  • Cannot set password with DirectoryEntry.Invoke when user is created in AD using ASP.NET C#
  • application closes after closing interstitial ad
  • iAd works in iPhone but not iPad
  • How to store result of stored procedure in a variable using SQL Server
  • Displaying iOS iAds only to supported countries
  • 2-table interaction: insert, get result, insert
  • Multiple versions of iTunesArtwork in one project?
  • Bash if statement with multiple conditions
  • Copy to all folders batch file?
  • System.InvalidCastException: Specified cast is not valid
  • Dialing with Intent.ACTION_CALL stopps at # in phone number
  • How would I use PHP exceptions to define a redirect?
  • How to redirect a user to a different server and include HTTP basic authentication credentials?
  • How to set my toolbar fixed while scrolling android
  • Symfony2: How to get request parameter
  • AT Commands to Send SMS not working in Windows 8.1
  • SetUp method failed while running tests from teamcity
  • Windows forms listbox.selecteditem displaying “System.Data.DataRowView” instead of actual value
  • log4net write single file for each call to log.info
  • Getting error when using KSoap library to consume .NET web services
  • apache spark aggregate function using min value
  • Sorting a 2D array using the second column C++