added the changes

This commit is contained in:
chandu54321 2024-12-11 15:53:59 +05:30
parent 2186fa9e5a
commit 6659b87273

View file

@ -1,6 +1,5 @@
trigger: trigger:
- master # Adjust to your branch name - master
pool: pool:
vmImage: 'ubuntu-latest' vmImage: 'ubuntu-latest'
@ -10,9 +9,9 @@ variables:
steps: steps:
- task: JavaToolInstaller@0 - task: JavaToolInstaller@0
inputs: inputs:
versionSpec: '17' # Specify the desired JDK version versionSpec: '17'
jdkArchitectureOption: 'x64' # Choose architecture (x64 or x86) jdkArchitectureOption: 'x64'
jdkSourceOption: 'PreInstalled' # Use PreInstalled if available jdkSourceOption: 'PreInstalled'
displayName: 'Install Java 17' displayName: 'Install Java 17'
- task: Maven@4 - task: Maven@4
@ -24,12 +23,12 @@ steps:
- task: SonarCloudPrepare@3 - task: SonarCloudPrepare@3
inputs: inputs:
SonarCloud: 'SONAR_CLOUD_1' # Replace with your SonarCloud service connection name SonarCloud: 'SONAR_CLOUD_1'
organization: '$(SONAR_ORGANIZATION)' # Replace with your SonarCloud organization name organization: '$(SONAR_ORGANIZATION)'
scannerMode: 'CLI' scannerMode: 'CLI'
configMode: 'manual' configMode: 'manual'
cliProjectKey: '$(SONAR_PROJECT_KEY)' # Replace with your SonarCloud project key cliProjectKey: '$(SONAR_PROJECT_KEY)'
cliProjectName: '$(SONAR_PROJECT)' # Replace with your SonarCloud project name cliProjectName: '$(SONAR_PROJECT)'
cliProjectVersion: '1.0' cliProjectVersion: '1.0'
extraProperties: | extraProperties: |
sonar.java.binaries=target/classes sonar.java.binaries=target/classes