Hi,
we are using the SonarQube Developer EditionVersion 7.9.1 (build 27448) and have Problems with Azure DevOps source code decorations. Our Installation is behind a company proxy server and we set up the proxy server configuration in the sonar.properties file as follows:
sonar.web.javaAdditionalOpts=-Djdk.http.auth.tunneling.disabledSchemes=""
http.proxyHost=ourServer
http.proxyPort=8080
http.proxyUser=ourUser
http.proxyPassword=ourPassword
https.proxyHost=ourServer
https.proxyPort=8080
https.proxyUser=ourUser
https.proxyPassword=ourPassword
This works very well for the Sonar Marketplace to download plugins, but when we run a build in AzureDev Ops we get the following error in ce.log file:
Failed to decorate Azure DevOps Pull Request: API resource location 225f7195-f9c7-4d14-ab28-a83f7ff77e1f is not registered on https://company.visualstudio.com/. HTTP 407 authenticationrequired
I think that the compute engine ignores the authentication. How can i work around this problem?
Thanks and best regards.
/legacycode
I have some new information to this problem. Since the update to version 4.7.2 of the Azure DevOps plugin we observe the following:
##[section]Starting: SonarQubePrepare
==============================================================================
Task : Prepare Analysis Configuration
Description : Prepare SonarQube analysis configuration
Version : 4.7.2
Author : sonarsource
Help : [More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
==============================================================================
##[section]Finishing: SonarQubePrepare
But the SonarQube publish gate task seems to use the old version 4.7.0:
##[section]Starting: SonarQubePublish
==============================================================================
Task : Publish Quality Gate Result
Description : Publish SonarQube's Quality Gate result on the Azure DevOps build result, to be used after the actual analysis.
Version : 4.7.0
Author : sonarsource
Help : [More Information](http://redirect.sonarsource.com/doc/install-configure-scanner-tfs-ts.html)
==============================================================================
SYSTEMVSSCONNECTION exists true
##[error]Failed to update build properties, error was : {"code":"ETIMEDOUT","errno":"ETIMEDOUT","syscall":"connect","address":"13.107.42.18","port":443}
(node:21212) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): undefined
##[section]Finishing: SonarQubePublish
This seems simliar to another post i found on the internet:
https://developercommunity.visualstudio.com/content/problem/694508/the-new-version-470-of-publish-quality-gate-result.html?inRegister=true
If you need more information, please let me know.
Thanks for help.
/legacycode
1 Like
Hi,
The sonar.properties file you shown above is the one your SonarQube instance configuration ?
Do you use the same while using the Azure DevOps extension ? In your code ?
Thank you.
Mickaël