mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-15 12:25:50 +00:00
templates
This commit is contained in:
parent
65ecf4684d
commit
473791ddb4
1 changed files with 21 additions and 0 deletions
21
templates/maven-project.yaml
Normal file
21
templates/maven-project.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
steps:
|
||||
- task: Maven@4
|
||||
inputs:
|
||||
mavemPOMFile: pom.xml
|
||||
goals: package
|
||||
publishJUnitResults: true
|
||||
testResultFiles: '**/surefire-reports/TEST-*.xml'
|
||||
jdkVersionOption: 'default'
|
||||
sonarQubeRunAnalysis: true
|
||||
- task: CopyFiles@2
|
||||
inputs:
|
||||
contents: '**/java-hello-world-with-maven*.jar'
|
||||
targetFolder: $(Build.ArtifactStagingDirectory)
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
pathToPublish: $(Build.ArtifactStagingDirectory)
|
||||
artifactName: $(Build.Repository.Name)
|
||||
- task: SonarCloudPublish@3
|
||||
inputs:
|
||||
pollingTimeoutSec: '300'
|
||||
|
Loading…
Reference in a new issue