From 36e202e91d05137febcb65842362d56d66c8c128 Mon Sep 17 00:00:00 2001 From: karthki <46651812+karthki@users.noreply.github.com> Date: Thu, 23 Sep 2021 10:56:27 +0300 Subject: [PATCH 1/4] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 00000000..34edff52 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,22 @@ +# Maven +# Build your Java project and run tests with Apache Maven. +# Add steps that analyze code, save build artifacts, deploy, and more: +# https://docs.microsoft.com/azure/devops/pipelines/languages/java + +trigger: +- master + +pool: + vmImage: ubuntu-latest + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.8' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From 902f0e10bb983a3b3c0e14335a9559ddc4dcf114 Mon Sep 17 00:00:00 2001 From: karthki <46651812+karthki@users.noreply.github.com> Date: Thu, 23 Sep 2021 11:03:01 +0300 Subject: [PATCH 2/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 34edff52..ac85ea05 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,3 +20,12 @@ steps: publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' goals: 'package' +- task: CopyFiles@2 + inputs: + Contents: '**/.war' + TargetFolder: '$(build.artifactstagingdirectory)' +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: '$(Build.ArtifactStagingDirectory)' + ArtifactName: 'warfile' + publishLocation: 'Container' From 2d50f9213db2dd8282f9c2dfee89be5f80ed4914 Mon Sep 17 00:00:00 2001 From: karthki <46651812+karthki@users.noreply.github.com> Date: Thu, 23 Sep 2021 11:18:17 +0300 Subject: [PATCH 3/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ac85ea05..213395d7 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,7 +20,7 @@ steps: publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' goals: 'package' -- task: CopyFiles@2 +- task: inputs: Contents: '**/.war' TargetFolder: '$(build.artifactstagingdirectory)' From 705d71c63d4674ce9595204876460993bf8ffd42 Mon Sep 17 00:00:00 2001 From: karthki <46651812+karthki@users.noreply.github.com> Date: Thu, 23 Sep 2021 11:18:48 +0300 Subject: [PATCH 4/4] Update azure-pipelines.yml for Azure Pipelines --- azure-pipelines.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 213395d7..414f4745 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,10 +20,6 @@ steps: publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' goals: 'package' -- task: - inputs: - Contents: '**/.war' - TargetFolder: '$(build.artifactstagingdirectory)' - task: PublishBuildArtifacts@1 inputs: PathtoPublish: '$(Build.ArtifactStagingDirectory)'