From f563c6f59dfe5a3f19f5a6c223a155df05dc4140 Mon Sep 17 00:00:00 2001 From: lakshmi164585 <115771905+lakshmi164585@users.noreply.github.com> Date: Wed, 22 Feb 2023 12:10:56 +0530 Subject: [PATCH] Set up CI with Azure Pipelines [skip ci] --- azurepipeline.yaml | 24 ++++++------------------ 1 file changed, 6 insertions(+), 18 deletions(-) diff --git a/azurepipeline.yaml b/azurepipeline.yaml index 14325ae5f..9aece8785 100644 --- a/azurepipeline.yaml +++ b/azurepipeline.yaml @@ -1,21 +1,9 @@ --- pool: - name: Default -trigger: + name: 'ubuntu' +trigger: - main -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' - 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 +extends: + template: ./parameter1.yaml + parameters: + JDKVersion: 1.17