Problem with Sonarqube and Azure DevOps

Hello there,

first of all i’m using 2.7 version of sonarqube plugin in Java with Gradle.

I’m trying to run a sonarqube gradle task from azure pipeline like:
- task: Gradle@2
displayName: ‘SonarQube Inspection’
inputs:
options: ‘-Dsonar.projectKey=provisioning-storage -Dsonar.host.url=(SONAR_QUBE_URL) -Dsonar.login=(SONAR_QUBE_TOKEN) -Dsonar.java.source=1.8’
tasks: sonarqube

When i run the task locally without variables everything works fine but it doesn’t work on Azure.
i’m getting build falied with
SonarQube server [https://sonarqube.XXXXX.com] can not be reached

Please help

Hi @nejji143 and welcome to the community.

Which version of Azure DevOps are you using ? Is that the one on the cloud or on-premise ?

Thanks.
Mickaël

Hello @mickaelcaro, thanks for the welcome.

We are using Azure DevOps on the cloud. Our company has an account as an organization on dev.azure.com