From a0ffd4251982f17d42d49b385bfdc2b9226fb4cc Mon Sep 17 00:00:00 2001 From: kumarsanwork Date: Tue, 14 Apr 2026 14:49:42 +0530 Subject: [PATCH 1/9] 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 000000000..e8f3d6f54 --- /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: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.11' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From 7efc673a09fc211145f20cbb6b51de8dbc257d6c Mon Sep 17 00:00:00 2001 From: kumarsanwork Date: Tue, 14 Apr 2026 14:59:58 +0530 Subject: [PATCH 2/9] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index f88d52f73..e1f8caace 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[![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) # Contributing From 62073cc3488138a7c058603c71708e9e68ebe99b Mon Sep 17 00:00:00 2001 From: Sandeep Kumar Date: Tue, 14 Apr 2026 16:04:59 +0530 Subject: [PATCH 3/9] Commiting to Azure Pipelines --- azure-pipelines.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e8f3d6f54..d030aabd2 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,8 +6,17 @@ trigger: - main +strategy: + matrix: + linux: + imageName: 'ubuntu-latest' + windows: + imageName: 'windows-latest' + macos: + imageName: 'macos-latest' + pool: - vmImage: ubuntu-latest + vmImage: $(imageName) steps: - task: Maven@3 From 4cc4af14632d157adf2fb1370dd437344fa0bb93 Mon Sep 17 00:00:00 2001 From: Sandeep Kumar Date: Tue, 14 Apr 2026 16:09:06 +0530 Subject: [PATCH 4/9] Commiting to Azure Pipelines v1 --- azure-pipelines.yml | 28 +++++++++++++++++----------- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index d030aabd2..06255985f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -18,14 +18,20 @@ strategy: pool: vmImage: $(imageName) -steps: -- task: Maven@3 - inputs: - mavenPomFile: 'pom.xml' - mavenOptions: '-Xmx3072m' - javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.11' - jdkArchitectureOption: 'x64' - publishJUnitResults: true - testResultsFiles: '**/surefire-reports/TEST-*.xml' - goals: 'package' +stages: +- stage: Build + displayName: BuildTheSource + jobs: + - job: FirstJobIsToBuild + displayName: Build + steps: + - task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.11' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From 07f595c3780f20409ec405d5f8bafe87455fa1d1 Mon Sep 17 00:00:00 2001 From: Sandeep Kumar Date: Tue, 14 Apr 2026 16:09:32 +0530 Subject: [PATCH 5/9] Commiting to Azure Pipelines v1 --- azure-pipelines.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 06255985f..f23569aae 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -12,8 +12,6 @@ strategy: imageName: 'ubuntu-latest' windows: imageName: 'windows-latest' - macos: - imageName: 'macos-latest' pool: vmImage: $(imageName) From 2ae36b47af6affd92ce0a204e924fb32bd29fb75 Mon Sep 17 00:00:00 2001 From: Sandeep Kumar Date: Tue, 14 Apr 2026 16:11:27 +0530 Subject: [PATCH 6/9] Commiting to Azure Pipelines v2 --- azure-pipelines.yml | 29 ++++++++++++----------------- 1 file changed, 12 insertions(+), 17 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f23569aae..ae845cae0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -13,23 +13,18 @@ strategy: windows: imageName: 'windows-latest' + pool: vmImage: $(imageName) -stages: -- stage: Build - displayName: BuildTheSource - jobs: - - job: FirstJobIsToBuild - displayName: Build - steps: - - task: Maven@3 - inputs: - mavenPomFile: 'pom.xml' - mavenOptions: '-Xmx3072m' - javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.11' - jdkArchitectureOption: 'x64' - publishJUnitResults: true - testResultsFiles: '**/surefire-reports/TEST-*.xml' - goals: 'package' +steps: + - task: Maven@3 + inputs: + mavenPomFile: 'pom.xml' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.11' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' From 46249e076912adc298ab1b67b42b81249d230faf Mon Sep 17 00:00:00 2001 From: Sandeep Kumar Date: Tue, 14 Apr 2026 16:16:45 +0530 Subject: [PATCH 7/9] Commiting to Azure Pipelines v3 --- azure-pipelines.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index ae845cae0..f2ac0dad0 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -9,8 +9,10 @@ trigger: strategy: matrix: linux: + jdkversion: "1.11" imageName: 'ubuntu-latest' windows: + jdkversion: "1.10" imageName: 'windows-latest' @@ -23,7 +25,7 @@ steps: mavenPomFile: 'pom.xml' mavenOptions: '-Xmx3072m' javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.11' + jdkVersionOption: $(jdkversion) jdkArchitectureOption: 'x64' publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' From 896d406ad1c04c5bb80f65e3065777d6472b3b19 Mon Sep 17 00:00:00 2001 From: Sandeep Kumar Date: Tue, 14 Apr 2026 16:25:35 +0530 Subject: [PATCH 8/9] Creating a pull request from Main branch and see if that triggers the pipeline --- azure-pipelines.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index f2ac0dad0..a32d1183a 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -3,8 +3,8 @@ # Add steps that analyze code, save build artifacts, deploy, and more: # https://docs.microsoft.com/azure/devops/pipelines/languages/java -trigger: -- main +pr: + - main strategy: matrix: From 6a7d3140996ee3cbfa9cb7282d3c811382a8d9a9 Mon Sep 17 00:00:00 2001 From: kumarsanwork Date: Tue, 14 Apr 2026 16:27:32 +0530 Subject: [PATCH 9/9] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e1f8caace..af0c333e3 100644 --- a/README.md +++ b/README.md @@ -1,5 +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