Good morning. I’m trying to resolve a warning regarding the property ‘sonar.login’. My environment and setup is this one. I’m running an Azure DevOps Pipeline building a Maven project. Everything works, the results are published in SonarCloud. The problem is that I keep getting this warning:
The property ‘sonar.login’ is deprecated and will be removed in the future. Please use the ‘sonar.token’ property instead when passing a token.
Now, I do not specify that property in any of my pipeline task. I cannot find the property in any place on the SonarCloud project UI. Furthermore I have also explicitly specified the extraproperty sonar.token, but without any different result.
I post here my Pipeline, please provide some help, where is this sonar.login option??
trigger:
branches:
include:
- develop
exclude:
- main
pool:
vmImage: ubuntu-latest
stages:
- stage: InstallOpenJDK_Packaging
displayName: Install OpenJDK 20.0.2 and perform Packaging
jobs:
- job: installing
displayName: Install OpenJDK, Install Modules, and run Sonar
steps:
- task: SonarCloudPrepare@1
inputs:
SonarCloud: 'NoteSpese-SonarCloud'
organization: 'prismacatania'
scannerMode: 'Other'
extraProperties: |
sonar.projectKey=Note-Spese-Common-Module
sonar.token=xxx
- task: JavaToolInstaller@0
displayName: Install OpenJDK
inputs:
versionSpec: '20'
jdkArchitectureOption: 'x64'
jdkSourceOption: 'LocalDirectory'
jdkFile: 'openJdk/openjdk-20.0.2_linux-x64_bin.tar.gz'
jdkDestinationDirectory: 'openJdk/builds'
cleanDestinationDirectory: true
- script: |
echo "$(JAVA_HOME)"
displayName: displaying JAVA_HOME variable
- task: Maven@4
displayName: Compile and Build via Packaging(common-module)
inputs:
goals: install
mavenPomFile: 'common-module/pom.xml'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
testRunTitle: 'Packaging common test run'
javaHomeOption: 'JDKVersion'
jdkVersionOption: '20'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
effectivePomSkip: false
sonarQubeRunAnalysis: true
- task: SonarCloudPublish@1
inputs:
pollingTimeoutSec: '1000'