From 4ebc055c6c255e224090182dc92b48724e86b844 Mon Sep 17 00:00:00 2001 From: Kiranteja623 <100252762+Kiranteja623@users.noreply.github.com> Date: Thu, 16 Feb 2023 21:55:11 +0530 Subject: [PATCH] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index bd49bc633..220eb41f1 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -5,13 +5,16 @@ trigger: - main jobs: - job: + displayName: installrequred steps: - script: sudo apt update - 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: @@ -19,5 +22,6 @@ jobs: publishJUnitResults: true goals: 'package' testResultsFiles: '**/surefire-reports/TEST-*.xml' + jdkDirectory: /usr/lib/jvm/openjdk-17 jdkVersionOption: '1.17' mavenDirectory: spring-petclinic