mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Added: Sonar extra properties
This commit is contained in:
parent
13e3677c77
commit
c60a906e65
1 changed files with 7 additions and 6 deletions
|
@ -24,7 +24,11 @@ jobs:
|
||||||
scannerMode: 'Other'
|
scannerMode: 'Other'
|
||||||
organization: 'james-flynn-ie'
|
organization: 'james-flynn-ie'
|
||||||
projectKey: 'spring-petclinic'
|
projectKey: 'spring-petclinic'
|
||||||
|
extraProperties:
|
||||||
|
sonar.branch.name=$(Build.SourceBranchName)
|
||||||
|
sonar.language=java
|
||||||
|
sonar.sources=src/main/java/org/springframework/samples/petclinic/*
|
||||||
|
sonar.sourceEncoding=UTF-8
|
||||||
|
|
||||||
- task: Maven@3
|
- task: Maven@3
|
||||||
displayName: 'Maven Build, Test and Package'
|
displayName: 'Maven Build, Test and Package'
|
||||||
|
@ -39,11 +43,8 @@ jobs:
|
||||||
mavenOptions: '-Xmx3072m'
|
mavenOptions: '-Xmx3072m'
|
||||||
mavenAuthenticateFeed: false
|
mavenAuthenticateFeed: false
|
||||||
effectivePomSkip: false
|
effectivePomSkip: false
|
||||||
# Run SonarCloud analysis as a separate step
|
sonarQubeRunAnalysis: true
|
||||||
sqAnalysisEnabled: true
|
sqMavenPluginVersionChoice: 'latest'
|
||||||
|
|
||||||
- task: SonarCloudAnalyze@1
|
|
||||||
displayName: 'Run SonarCloud Code Analysis Scan'
|
|
||||||
|
|
||||||
- task: SonarCloudPublish@1
|
- task: SonarCloudPublish@1
|
||||||
displayName: 'Publish Quality Gate Result on SonarCloud'
|
displayName: 'Publish Quality Gate Result on SonarCloud'
|
||||||
|
|
Loading…
Reference in a new issue