From 80652951ec747e3a88af242af6818bf3f298c90f Mon Sep 17 00:00:00 2001 From: Kiranteja623 <100252762+Kiranteja623@users.noreply.github.com> Date: Sat, 18 Feb 2023 14:55:50 +0530 Subject: [PATCH] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 37 +++++++++++++++++++++---------------- 1 file changed, 21 insertions(+), 16 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 78c4c336d..2ad8b2ae4 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,19 +3,24 @@ pool: name: Default 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 - - script: aws s3 cp $(Agent.WorkFolder)/2/s/target/spring-petclinic-3.0.0-SNAPSHOT.jar s3://spcfeb18 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --recursive - - task: Maven@3 - inputs: - mavenPOMFile: 'pom.xml' - publishJUnitResults: true - goals: 'package' - testResultsFiles: '**/surefire-reports/TEST-*.xml' - javaHomeOption: 'Path' - jdkDirectory: /usr/lib/jvm/java-17-openjdk-amd64 - mavenVersionOption: 'path' - mavenDirectory: /home/ubuntu/spring-petclinic +jobs: + - job: myjob + 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' + javaHomeOption: 'Path' + jdkDirectory: /usr/lib/jvm/java-17-openjdk-amd64 + mavenVersionOption: 'path' + mavenDirectory: /home/ubuntu/spring-petclinic + - job: script + steps: + - script: aws s3 cp $(Agent.WorkFolder)/3/s/target/spring-petclinic-3.0.0-SNAPSHOT.jar s3://spcfeb18 --grants read=uri=http://acs.amazonaws.com/groups/global/AllUsers --recursive + \ No newline at end of file