mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 15:55:49 +00:00
Added: SonarCloud to pipeline
This commit is contained in:
parent
9bdbc761ff
commit
73bff7e33d
1 changed files with 18 additions and 1 deletions
|
@ -16,8 +16,17 @@ jobs:
|
|||
- job: BuildTestDeploy
|
||||
displayName: Build Test and Deploy spring-petclinic Java Web App
|
||||
steps:
|
||||
|
||||
- task: SonarCloudPrepare@1
|
||||
displayName: 'Prepare SonarCloud scan'
|
||||
inputs:
|
||||
SonarCloud: 'sonarcloud-svc-connection'
|
||||
organization: 'james-flynn-ie'
|
||||
projectKey: 'spring-petclinic'
|
||||
scannerMode: 'Other'
|
||||
|
||||
- task: Maven@3
|
||||
displayName: 'Maven Package'
|
||||
displayName: 'Maven Build, Test and Package'
|
||||
inputs:
|
||||
mavenPomFile: 'pom.xml'
|
||||
mavenOptions: '-Xmx3072m'
|
||||
|
@ -29,6 +38,14 @@ jobs:
|
|||
testResultsFiles: '**/TEST-*.xml'
|
||||
goals: 'package'
|
||||
|
||||
- task: SonarCloudAnalyze@1
|
||||
displayName: 'Run SonarCloud Code Analysis'
|
||||
|
||||
- task: SonarCloudPublish@1
|
||||
displayName: 'Publish Quality Gate Result on SonarCloud'
|
||||
inputs:
|
||||
pollingTimeoutSec: '300'
|
||||
|
||||
- task: CopyFiles@2
|
||||
displayName: 'Copy Files to artifact staging directory'
|
||||
inputs:
|
||||
|
|
Loading…
Reference in a new issue