diff --git a/README.md b/README.md index f88d52f73..af0c333e3 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ +[![Build Status](https://dev.azure.com/LearnDevOps7180/kumarsan-Devops2/_apis/build/status%2Fkumarsanwork.pipelines-java?branchName=main)](https://dev.azure.com/LearnDevOps7180/kumarsan-Devops2/_build/latest?definitionId=17&branchName=main) +# New Changes v1 # Contributing This project welcomes contributions and suggestions. Most contributions require you to agree to a diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..a32d1183a --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,32 @@ +# 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 + +pr: + - main + +strategy: + matrix: + linux: + jdkversion: "1.11" + imageName: 'ubuntu-latest' + windows: + jdkversion: "1.10" + imageName: 'windows-latest' + + +pool: + vmImage: $(imageName) + +steps: + - task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: $(jdkversion) + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package'