Update azure-pipelines-1.yml for Azure Pipelines

This commit is contained in:
Kiranteja623 2023-02-16 21:55:11 +05:30
parent 66c713eb6b
commit 4ebc055c6c

View file

@ -5,13 +5,16 @@ trigger:
- main - main
jobs: jobs:
- job: - job:
displayName: installrequred
steps: steps:
- script: sudo apt update - script: sudo apt update
- script: sudo apt install maven -y - script: sudo apt install maven -y
- script: sudo apt install git -y - script: sudo apt install git -y
- script: sudo apt install openjdk-17-jdk -y
- job: package - job: package
displayName: build the package displayName: build the package
dependsOn: installrequred
steps: steps:
- task: Maven@3 - task: Maven@3
inputs: inputs:
@ -19,5 +22,6 @@ jobs:
publishJUnitResults: true publishJUnitResults: true
goals: 'package' goals: 'package'
testResultsFiles: '**/surefire-reports/TEST-*.xml' testResultsFiles: '**/surefire-reports/TEST-*.xml'
jdkDirectory: /usr/lib/jvm/openjdk-17
jdkVersionOption: '1.17' jdkVersionOption: '1.17'
mavenDirectory: spring-petclinic mavenDirectory: spring-petclinic