mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 07:45:49 +00:00
Changed: ScannerMode to CLI
This commit is contained in:
parent
a156027e03
commit
dce75693d3
1 changed files with 8 additions and 7 deletions
|
@ -21,14 +21,14 @@ jobs:
|
||||||
displayName: 'Prepare SonarCloud Code Analysis Scan'
|
displayName: 'Prepare SonarCloud Code Analysis Scan'
|
||||||
inputs:
|
inputs:
|
||||||
SonarCloud: 'sonarcloud-svc-connection'
|
SonarCloud: 'sonarcloud-svc-connection'
|
||||||
scannerMode: 'Other'
|
scannerMode: 'CLI'
|
||||||
|
configMode: 'manual'
|
||||||
|
cliProjectKey: 'spring-petclinic'
|
||||||
organization: 'james-flynn-ie'
|
organization: 'james-flynn-ie'
|
||||||
extraProperties:
|
cliSources: 'src/main/java/org/springframework/samples/petclinic/'
|
||||||
|
extraProperties:
|
||||||
sonar.branch.name=$(Build.SourceBranchName)
|
sonar.branch.name=$(Build.SourceBranchName)
|
||||||
sonar.language=java
|
sonar.language=java
|
||||||
sonar.projectKey=spring-petclinic
|
|
||||||
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'
|
||||||
|
@ -43,8 +43,9 @@ jobs:
|
||||||
mavenOptions: '-Xmx3072m'
|
mavenOptions: '-Xmx3072m'
|
||||||
mavenAuthenticateFeed: false
|
mavenAuthenticateFeed: false
|
||||||
effectivePomSkip: false
|
effectivePomSkip: false
|
||||||
sonarQubeRunAnalysis: true
|
|
||||||
sqMavenPluginVersionChoice: 'latest'
|
- task: SonarCloudAnalyze@1
|
||||||
|
displayName: 'Run Sonarcloud Code Analysis'
|
||||||
|
|
||||||
- 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