mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-27 09:55:49 +00:00
Set up CI with Azure Pipelines
[skip ci]
This commit is contained in:
parent
6a8d927f72
commit
f2cea327f8
1 changed files with 17 additions and 14 deletions
|
@ -1,17 +1,20 @@
|
|||
---
|
||||
pool:
|
||||
name: default
|
||||
name: Default
|
||||
trigger:
|
||||
- main
|
||||
jobs:
|
||||
- job: package
|
||||
displayName: build the package
|
||||
steps:
|
||||
- task: Maven@3
|
||||
inputs:
|
||||
mavenPOMFile: 'pom.xml'
|
||||
goals: 'package'
|
||||
testResultsFiles: '**/surefire-reports/TEST-*.xml'
|
||||
JDKVersion: '1.17'
|
||||
javaHomeOption: 'Path'
|
||||
jdkDirectory: /usr/lib/jvm/openjdk-17
|
||||
steps:
|
||||
- script: sudo apt update
|
||||
- script: sudo apt install openjdk-17-jdk -y
|
||||
- script: sudo apt install maven -y
|
||||
- script: sudo apt install git -y
|
||||
- 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
|
Loading…
Reference in a new issue