mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:55:49 +00:00
Update azure-pipelines.yaml for Azure Pipelines
This commit is contained in:
parent
5163c1db03
commit
660cb48efa
1 changed files with 19 additions and 25 deletions
|
@ -1,29 +1,23 @@
|
|||
---
|
||||
pool:
|
||||
name: Default
|
||||
name: default
|
||||
trigger:
|
||||
- main
|
||||
jobs:
|
||||
- job: myjob
|
||||
displayName: myjob
|
||||
steps:
|
||||
- task: Maven@3
|
||||
inputs:
|
||||
mavenPOMFile: 'pom.xml'
|
||||
publishJUnitResults: true
|
||||
goals: 'package'
|
||||
testResultsFiles: '**/surefire-reports/TEST-*.xml'
|
||||
javaHomeOption: 'Path'
|
||||
jdkDirectory: /usr/lib/jvm/java-17-openjdk-amd64
|
||||
mavenVersionOption: 'path'
|
||||
mavenDirectory: /home/ubuntu/spring-petclinic
|
||||
- job: job2
|
||||
displayName: job2
|
||||
dependsOn: myjob
|
||||
steps:
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.Repository.localPath)'
|
||||
ArtifactName: 'drop'
|
||||
publishLocation: 'Container'
|
||||
|
||||
steps:
|
||||
- task: Maven@3
|
||||
inputs:
|
||||
mavenPOMFile: 'pom.xml'
|
||||
publishJUnitResults: true
|
||||
goals: 'package'
|
||||
testResultsFiles: '**/surefire-reports/TEST-*.xml'
|
||||
javaHomeOption: 'Path'
|
||||
jdkDirectory: /usr/lib/jvm/java-17-openjdk-amd64
|
||||
mavenVersionOption: 'path'
|
||||
mavenDirectory: /home/ubuntu/spring-petclinic
|
||||
|
||||
- task: PublishBuildArtifacts@1
|
||||
inputs:
|
||||
PathtoPublish: '$(Build.Repository.localPath)'
|
||||
ArtifactName: 'drop'
|
||||
publishLocation: 'Container'
|
||||
|
||||
|
|
Loading…
Reference in a new issue