From 0e7cced41a8eca332e3d195459f54e97f3647cd7 Mon Sep 17 00:00:00 2001 From: lakshmi164585 <115771905+lakshmi164585@users.noreply.github.com> Date: Fri, 17 Feb 2023 15:49:19 +0530 Subject: [PATCH] Update azurepipeline.yaml for Azure Pipelines --- azurepipeline.yaml | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/azurepipeline.yaml b/azurepipeline.yaml index a000d99c1..14325ae5f 100644 --- a/azurepipeline.yaml +++ b/azurepipeline.yaml @@ -1,17 +1,21 @@ ---- -pool: Default -trigger: +--- +pool: + name: Default +trigger: - main steps: - - script: sudo apt update - - script: sudo apt install openjdk-17-jdk -y - - script: sudo apt install maven -y - - task: Maven@3 - inputs: - mavenPOMFile: 'pom.xml' - publishJUnitResults: true - testResultsFiles: '**/surefire-reports/TEST-*.xml' - JDKVersion: '1.17' - goals: 'package' - mavenVersionOption: 'Default' - mavenAuthenticateFeed: false + - 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' + JDKVersion: '1.17' + javaHomeOption: 'Path' + jdkDirectory: /usr/lib/jvm/java-17-openjdk-amd64 + mavenVersionOption: 'path' + mavenDirectory: /home/ubuntu/spring-petclinic \ No newline at end of file