From e80dad826f23257c69fbba7d0cfb83dce4794bfa Mon Sep 17 00:00:00 2001 From: MUKUNTHANMS007 Date: Wed, 7 Jan 2026 11:45:17 +0530 Subject: [PATCH 1/6] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 azure-pipelines.yml diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 000000000..62b1085cc --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,11 @@ +trigger: +- main + +pool: + vmImage: ubuntu-latest + +steps: +- task: Maven@4 + inputs: + mavenPomFile: 'pom.xml' + goals: 'package' From 3622a0708a3e53cb18e58778252b43e247caff07 Mon Sep 17 00:00:00 2001 From: MUKUNTHANMS007 Date: Wed, 21 Jan 2026 10:42:59 +0530 Subject: [PATCH 2/6] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 62b1085cc..e1850b8fd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,3 +1,8 @@ +# 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 @@ -5,7 +10,13 @@ pool: vmImage: ubuntu-latest steps: -- task: Maven@4 +- task: Maven@3 inputs: mavenPomFile: 'pom.xml' - goals: 'package' + mavenOptions: '-Xmx3072m' + javaHomeOption: 'JDKVersion' + jdkVersionOption: '1.11' + jdkArchitectureOption: 'x64' + publishJUnitResults: true + testResultsFiles: '**/surefire-reports/TEST-*.xml' + goals: 'package' \ No newline at end of file From 645a746384dc961f74fecaa446887ec1ba8bf33e Mon Sep 17 00:00:00 2001 From: MUKUNTHANMS007 Date: Wed, 28 Jan 2026 11:13:37 +0530 Subject: [PATCH 3/6] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines.yml | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e1850b8fd..eef45022f 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -1,22 +1,19 @@ -# 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 + 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' \ No newline at end of file +stages: +- stage: Build + displayName: 'Build Stage' + jobs: + - job: BuildJob + displayName: 'Build Job' + steps: + - script: | + echo "Restoring project dependencies..." + displayName: 'Restore dependencies' + - script: | + echo "Running unit tests..." + displayName: 'Run unit tests' \ No newline at end of file From 7cf483d9e4e4d16b514cdf5c4ea197323a7c730c Mon Sep 17 00:00:00 2001 From: MUKUNTHANMS007 Date: Wed, 4 Feb 2026 10:39:02 +0530 Subject: [PATCH 4/6] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-1.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 azure-pipelines-1.yml diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml new file mode 100644 index 000000000..eef45022f --- /dev/null +++ b/azure-pipelines-1.yml @@ -0,0 +1,19 @@ +trigger: +- main + +pool: + vmImage: 'ubuntu-latest' + +stages: +- stage: Build + displayName: 'Build Stage' + jobs: + - job: BuildJob + displayName: 'Build Job' + steps: + - script: | + echo "Restoring project dependencies..." + displayName: 'Restore dependencies' + - script: | + echo "Running unit tests..." + displayName: 'Run unit tests' \ No newline at end of file From bf5b72b2ed8a1b57404bae0c282f474df901462a Mon Sep 17 00:00:00 2001 From: MUKUNTHANMS007 Date: Wed, 4 Feb 2026 10:41:14 +0530 Subject: [PATCH 5/6] Update azure-pipelines-1.yml for Azure Pipelines --- azure-pipelines-1.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml index eef45022f..a82213956 100644 --- a/azure-pipelines-1.yml +++ b/azure-pipelines-1.yml @@ -14,6 +14,18 @@ stages: - script: | echo "Restoring project dependencies..." displayName: 'Restore dependencies' + - script: | + echo "Running unit tests..." + displayName: 'Run unit tests' + +- stage: Test + displayName: 'Test Stage' + dependsOn: Build + isSkippable: false + jobs: + - job: TestJob + displayName: 'Test Job' + steps: - script: | echo "Running unit tests..." displayName: 'Run unit tests' \ No newline at end of file From 525d0bf9f54ce725422da083dc7ab8f6ef4a98fb Mon Sep 17 00:00:00 2001 From: MUKUNTHANMS007 Date: Wed, 11 Feb 2026 10:42:40 +0530 Subject: [PATCH 6/6] Set up CI with Azure Pipelines [skip ci] --- azure-pipelines-2.yml | 107 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 azure-pipelines-2.yml diff --git a/azure-pipelines-2.yml b/azure-pipelines-2.yml new file mode 100644 index 000000000..e33fdb533 --- /dev/null +++ b/azure-pipelines-2.yml @@ -0,0 +1,107 @@ +trigger: +- main + +pool: + vmImage: 'ubuntu-latest' + +stages: +- stage: Build + displayName: 'Build Stage' + jobs: + - job: BuildJob + displayName: 'Build Job' + steps: + - script: | + echo "Restoring project dependencies..." + displayName: 'Restore dependencies' + - script: | + echo "Running unit tests..." + displayName: 'Run unit tests' + +- stage: Test + displayName: 'Test Stage' + dependsOn: Build + isSkippable: false + jobs: + - job: TestJob + displayName: 'Test Job' + steps: + - script: | + echo "Running unit tests..." + displayName: 'Run unit tests' + + +- stage: DeployToStaging + displayName: 'Deploy to Staging' + dependsOn: Test + jobs: + - job: DeployStagingJob + displayName: 'Deploy to Staging Job' + pool: + vmImage: 'ubuntu-latest' + steps: + - script: | + echo "Build staging job..." + displayName: 'Build and deploy to staging' + + - job: DeployStagingJobWithValidation + pool: server + timeoutInMinutes: 4320 # job times out in 3 days + displayName: 'Deploy to Staging Job' + steps: + - task: ManualValidation@1 + timeoutInMinutes: 1440 # task times out in 1 day + inputs: + notifyUsers: mukunthanthebest@gmail.com + instructions: 'Please validate the stage configuration and resume' + onTimeout: 'resume' + +- stage: DeployToProduction + displayName: 'Deploy to Production' + dependsOn: DeployToStaging + lockBehavior: sequential + condition: and(succeeded(), in(variables['Build.SourceBranch'], 'refs/heads/main', 'refs/heads/release')) + jobs: + - job: DeployProductionJob + displayName: 'Deploy to Production Job' + steps: + - script: | + echo "Deploying to production..." + # Add your deployment commands here + displayName: 'Run deployment commands' + - job: waitForValidation + displayName: Wait for external validation + pool: server + timeoutInMinutes: 4320 # job times out in 3 days + steps: + - task: ManualValidation@1 + timeoutInMinutes: 1440 # task times out in 1 day + inputs: + notifyUsers: mukunthanthebest@gmail.com + instructions: 'Please validate the build configuration and resume' + onTimeout: 'resume' + +- stage: DeployToAlternateProduction + displayName: 'Deploy to Alternate Production' + condition: succeeded() + trigger: manual + jobs: + - job: DeployAlternateProductionJob + displayName: 'Deploy to Alternate Production Job' + steps: + - script: | + echo "Deploying to alternate production..." + # Add your deployment commands here + displayName: 'Run deployment commands' + +- stage: Rollback + displayName: 'Rollback Stage' + trigger: manual + jobs: + - job: RollbackJob + displayName: 'Rollback Job' + steps: + - script: | + echo "Rolling back the deployment..." + # Add your rollback commands here + displayName: 'Run rollback commands' \ No newline at end of file