Update azure-pipelines-1.yml for Azure Pipelines

This commit is contained in:
Kiranteja623 2023-02-16 22:15:16 +05:30
parent 4ebc055c6c
commit 7d8575ce56

View file

@ -1,21 +1,13 @@
---
pool:
name: ubuntu-latest
name: Default
trigger:
- main
jobs:
- job:
displayName: installrequred
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
- script: sudo apt install openjdk-17-jdk -y
- job: package
displayName: build the package
dependsOn: installrequred
steps:
- task: Maven@3
inputs:
mavenPOMFile: 'pom.xml'
@ -24,4 +16,6 @@ jobs:
testResultsFiles: '**/surefire-reports/TEST-*.xml'
jdkDirectory: /usr/lib/jvm/openjdk-17
jdkVersionOption: '1.17'
mavenDirectory: spring-petclinic
mavenDirectory: /home/ubuntu/spring-petclinic