From 7d8575ce56e22873f5f2b5d07a8dfe00d987694d Mon Sep 17 00:00:00 2001 From: Kiranteja623 <100252762+Kiranteja623@users.noreply.github.com> Date: Thu, 16 Feb 2023 22:15:16 +0530 Subject: [PATCH] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 42 ++++++++++++++++++------------------------ 1 file changed, 18 insertions(+), 24 deletions(-) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index 220eb41f1..8e3192cda 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -1,27 +1,21 @@ --- -pool: - name: ubuntu-latest +pool: + name: Default 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: - mavenPOMFile: 'pom.xml' - publishJUnitResults: true - goals: 'package' - testResultsFiles: '**/surefire-reports/TEST-*.xml' - jdkDirectory: /usr/lib/jvm/openjdk-17 - jdkVersionOption: '1.17' - mavenDirectory: spring-petclinic +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' + jdkDirectory: /usr/lib/jvm/openjdk-17 + jdkVersionOption: '1.17' + mavenDirectory: /home/ubuntu/spring-petclinic + + \ No newline at end of file