Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
32 changes: 32 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
@@ -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'