From d6995f8130be6079380a841242786ad9bccda57d Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 13:29:48 +0530
Subject: [PATCH 01/43] Update pom.xml
---
my-app/pom.xml | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/my-app/pom.xml b/my-app/pom.xml
index 8671f90..e725520 100644
--- a/my-app/pom.xml
+++ b/my-app/pom.xml
@@ -69,7 +69,24 @@
maven-project-info-reports-plugin
3.0.0
+
+
+
+
+ dholerahul707
+ https://pkgs.dev.azure.com/dholerahul707/_packaging/dholerahul707/maven/v1
+
+ true
+
+
+ true
+
+
+
+
+
+
From cf19f2d9b21faf66c14a8d967192d7c34b68cbd9 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 13:42:43 +0530
Subject: [PATCH 02/43] Set up CI with Azure Pipelines
[skip ci]
---
azure-pipelines.yml | 51 +++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
create mode 100644 azure-pipelines.yml
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
new file mode 100644
index 0000000..1a284f4
--- /dev/null
+++ b/azure-pipelines.yml
@@ -0,0 +1,51 @@
+# 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:
+ name: azure-first project
+
+stages:
+
+# Stage 1: Build
+- stage: Build
+ displayName: 'Build Stage'
+ jobs:
+ - job: Build
+ displayName: 'Build Job'
+ steps:
+ - task: Maven@4
+ inputs:
+ mavenPomFile: 'pom.xml'
+ goals: 'clean install'
+ publishJUnitResults: true
+ testResultsFiles: '**/surefire-reports/TEST-*.xml'
+ javaHomeOption: 'JDKVersion'
+ mavenVersionOption: 'Default'
+ mavenAuthenticateFeed: false
+ effectivePomSkip: false
+ sonarQubeRunAnalysis: false
+ displayName: 'Maven Build'
+
+# Stage 2: Test
+- stage: Test
+ displayName: 'Test Stage'
+ dependsOn: Build # Run tests only if the build succeeds
+ jobs:
+ - job: UnitTests
+ displayName: 'Run Unit Tests'
+ steps:
+ - task: Maven@4
+ inputs:
+ mavenPomFile: 'pom.xml'
+ goals: 'test' # Only run tests in this stage
+ publishJUnitResults: true
+ testResultsFiles: '**/surefire-reports/TEST-*.xml'
+ javaHomeOption: 'JDKVersion'
+ mavenVersionOption: 'Default'
+ mavenAuthenticateFeed: false
+ displayName: 'Maven Unit Tests'
\ No newline at end of file
From 1e4da7136ff1045d1c1f291916ac3544ad6adee3 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 13:50:08 +0530
Subject: [PATCH 03/43] Update azure-pipelines.yml
---
azure-pipelines.yml | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 1a284f4..d232730 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -20,7 +20,7 @@ stages:
steps:
- task: Maven@4
inputs:
- mavenPomFile: 'pom.xml'
+ mavenPomFile: '/my-app/pom.xml'
goals: 'clean install'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
@@ -41,11 +41,11 @@ stages:
steps:
- task: Maven@4
inputs:
- mavenPomFile: 'pom.xml'
+ mavenPomFile: '/my-app/pom.xml'
goals: 'test' # Only run tests in this stage
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
javaHomeOption: 'JDKVersion'
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
- displayName: 'Maven Unit Tests'
\ No newline at end of file
+ displayName: 'Maven Unit Tests'
From 8ba138d85e042de5c9a2ffc2dad91f04dbc6e9b9 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 13:52:19 +0530
Subject: [PATCH 04/43] Update azure-pipelines.yml for Azure Pipelines
---
azure-pipelines.yml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index d232730..e74a44b 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -20,7 +20,7 @@ stages:
steps:
- task: Maven@4
inputs:
- mavenPomFile: '/my-app/pom.xml'
+ mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
goals: 'clean install'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
@@ -41,7 +41,7 @@ stages:
steps:
- task: Maven@4
inputs:
- mavenPomFile: '/my-app/pom.xml'
+ mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
goals: 'test' # Only run tests in this stage
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
From da909acff513b28686eb75f1b32a04381fcb6f4d Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 13:58:19 +0530
Subject: [PATCH 05/43] Update azure-pipelines.yml for Azure Pipelines
---
azure-pipelines.yml | 20 ++++++++++++++++++++
1 file changed, 20 insertions(+)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index e74a44b..8a05996 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -49,3 +49,23 @@ stages:
mavenVersionOption: 'Default'
mavenAuthenticateFeed: false
displayName: 'Maven Unit Tests'
+
+# Stage 3: Deploy
+- stage: Deploy
+ displayName: 'Deploy Stage'
+ dependsOn: Build # Run deploy only if the build succeeds
+ jobs:
+ - job: UnitTests
+ displayName: 'Run Deploy '
+ steps:
+ - task: Maven@4
+ inputs:
+ mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
+ goals: 'deploy'
+ publishJUnitResults: true
+ testResultsFiles: '**/surefire-reports/TEST-*.xml'
+ javaHomeOption: 'JDKVersion'
+ mavenVersionOption: 'Default'
+ mavenAuthenticateFeed: false
+ effectivePomSkip: false
+ sonarQubeRunAnalysis: false
From b9c4e93558a34e75d470ca6fe1c13bba82d82256 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 14:34:24 +0530
Subject: [PATCH 06/43] Set up CI with Azure Pipelines
[skip ci]
---
azure-pipelines-1.yml | 74 +++++++++++++++++++++++++++++++++++++++++++
1 file changed, 74 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 0000000..dc8b247
--- /dev/null
+++ b/azure-pipelines-1.yml
@@ -0,0 +1,74 @@
+# 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:
+ name:
+
+stages:
+
+# Stage 1: Build
+- stage: Build
+ displayName: 'Build Stage'
+ pool: azure-first project
+ jobs:
+ - job: Build
+ displayName: 'Build Job'
+ steps:
+ - task: Maven@4
+ inputs:
+ mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
+ goals: 'clean install'
+ publishJUnitResults: true
+ testResultsFiles: '**/surefire-reports/TEST-*.xml'
+ javaHomeOption: 'JDKVersion'
+ mavenVersionOption: 'Default'
+ mavenAuthenticateFeed: false
+ effectivePomSkip: false
+ sonarQubeRunAnalysis: false
+ displayName: 'Maven Build'
+
+# Stage 2: Test
+- stage: Test
+ displayName: 'Test Stage'
+ pool: Default
+ dependsOn: Build # Run tests only if the build succeeds
+ jobs:
+ - job: UnitTests
+ displayName: 'Run Unit Tests'
+ steps:
+ - task: Maven@4
+ inputs:
+ mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
+ goals: 'test' # Only run tests in this stage
+ publishJUnitResults: true
+ testResultsFiles: '**/surefire-reports/TEST-*.xml'
+ javaHomeOption: 'JDKVersion'
+ mavenVersionOption: 'Default'
+ mavenAuthenticateFeed: false
+ displayName: 'Maven Unit Tests'
+
+# Stage 3: Deploy
+- stage: Deploy
+ displayName: 'Deploy Stage'
+ pool: azure-first project
+ dependsOn: Build # Run deploy only if the build succeeds
+ jobs:
+ - job: UnitTests
+ displayName: 'Run Deploy '
+ steps:
+ - task: Maven@4
+ inputs:
+ mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
+ goals: 'deploy'
+ publishJUnitResults: true
+ testResultsFiles: '**/surefire-reports/TEST-*.xml'
+ javaHomeOption: 'JDKVersion'
+ mavenVersionOption: 'Default'
+ mavenAuthenticateFeed: false
+ effectivePomSkip: false
+ sonarQubeRunAnalysis: false
\ No newline at end of file
From e8a32d003eadb7db22209e89a807ac0af0317c8d Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 14:37:24 +0530
Subject: [PATCH 07/43] Update azure-pipelines-1.yml for Azure Pipelines
---
azure-pipelines-1.yml | 36 +++++++++---------------------------
1 file changed, 9 insertions(+), 27 deletions(-)
diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml
index dc8b247..d466dc9 100644
--- a/azure-pipelines-1.yml
+++ b/azure-pipelines-1.yml
@@ -1,20 +1,16 @@
# 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
+# https://docs.microsoft.com/azure/devops/pipelines/languages/java
trigger:
- main
-pool:
- name:
-
stages:
-
# Stage 1: Build
- stage: Build
displayName: 'Build Stage'
- pool: azure-first project
+ pool: 'azure-first project' # Specify your pool here
jobs:
- job: Build
displayName: 'Build Job'
@@ -25,18 +21,13 @@ stages:
goals: 'clean install'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
- javaHomeOption: 'JDKVersion'
- mavenVersionOption: 'Default'
- mavenAuthenticateFeed: false
- effectivePomSkip: false
- sonarQubeRunAnalysis: false
displayName: 'Maven Build'
# Stage 2: Test
- stage: Test
displayName: 'Test Stage'
- pool: Default
- dependsOn: Build # Run tests only if the build succeeds
+ dependsOn: Build # This stage depends on the Build stage
+ pool: 'Default' # Different agent pool
jobs:
- job: UnitTests
displayName: 'Run Unit Tests'
@@ -44,31 +35,22 @@ stages:
- task: Maven@4
inputs:
mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
- goals: 'test' # Only run tests in this stage
+ goals: 'test'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
- javaHomeOption: 'JDKVersion'
- mavenVersionOption: 'Default'
- mavenAuthenticateFeed: false
displayName: 'Maven Unit Tests'
# Stage 3: Deploy
- stage: Deploy
displayName: 'Deploy Stage'
- pool: azure-first project
dependsOn: Build # Run deploy only if the build succeeds
+ pool: 'azure-first project'
jobs:
- - job: UnitTests
- displayName: 'Run Deploy '
+ - job: Deploy
+ displayName: 'Deploy Job'
steps:
- task: Maven@4
inputs:
mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
goals: 'deploy'
- publishJUnitResults: true
- testResultsFiles: '**/surefire-reports/TEST-*.xml'
- javaHomeOption: 'JDKVersion'
- mavenVersionOption: 'Default'
- mavenAuthenticateFeed: false
- effectivePomSkip: false
- sonarQubeRunAnalysis: false
\ No newline at end of file
+ displayName: 'Maven Deploy'
From f6d2f9811ac9007f1ebed51f4f04ddc462cffd31 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 14:52:47 +0530
Subject: [PATCH 08/43] Update azure-pipelines-1.yml for Azure Pipelines
---
azure-pipelines-1.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml
index d466dc9..1fa7275 100644
--- a/azure-pipelines-1.yml
+++ b/azure-pipelines-1.yml
@@ -34,7 +34,7 @@ stages:
steps:
- task: Maven@4
inputs:
- mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
+ mavenPomFile: '/myagent/_work/1/s/my-app/pom.xml'
goals: 'test'
publishJUnitResults: true
testResultsFiles: '**/surefire-reports/TEST-*.xml'
From 0f9fa6dec9db8f077b4a24c471bba678a8863515 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 15:09:44 +0530
Subject: [PATCH 09/43] Update azure-pipelines-1.yml for Azure Pipelines
---
azure-pipelines-1.yml | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/azure-pipelines-1.yml b/azure-pipelines-1.yml
index 1fa7275..b0030e1 100644
--- a/azure-pipelines-1.yml
+++ b/azure-pipelines-1.yml
@@ -49,6 +49,11 @@ stages:
- job: Deploy
displayName: 'Deploy Job'
steps:
+ - script: |
+ echo "Searching for JAR files..."
+ find $(System.DefaultWorkingDirectory) -name "*.jar"
+ displayName: 'Find JAR Files'
+
- task: Maven@4
inputs:
mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
From 80bd6c9fbb3099cd1e3b78f7eb1b08025e46257e Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 19:45:22 +0530
Subject: [PATCH 10/43] Update azure-pipelines.yml
---
azure-pipelines.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 8a05996..98c23b5 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -37,7 +37,7 @@ stages:
dependsOn: Build # Run tests only if the build succeeds
jobs:
- job: UnitTests
- displayName: 'Run Unit Tests'
+ displayName: 'Run Unit Tests -get approval'
steps:
- task: Maven@4
inputs:
From aad4840389839e2c5aee6249b1fefd9a278024cd Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 19:59:22 +0530
Subject: [PATCH 11/43] Update azure-pipelines.yml
---
azure-pipelines.yml | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 98c23b5..394ac64 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -53,7 +53,11 @@ stages:
# Stage 3: Deploy
- stage: Deploy
displayName: 'Deploy Stage'
- dependsOn: Build # Run deploy only if the build succeeds
+ dependsOn: Build # Run deploy only if the build succeeds
+ environment: 'deploy'
+ strategy:
+ runOnce:
+ Deploy:
jobs:
- job: UnitTests
displayName: 'Run Deploy '
From d5d06a4ea59a34d6a5e8609b1996984453e20e3a Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 20:02:35 +0530
Subject: [PATCH 12/43] Update azure-pipelines.yml
---
azure-pipelines.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 394ac64..5bcc130 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -54,7 +54,7 @@ stages:
- stage: Deploy
displayName: 'Deploy Stage'
dependsOn: Build # Run deploy only if the build succeeds
- environment: 'deploy'
+ environment: 'deploy'# approval environment
strategy:
runOnce:
Deploy:
From 751bb8b20574db3f2d5d2b645f0754c00c37ccb5 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 20:06:54 +0530
Subject: [PATCH 13/43] Update azure-pipelines.yml
From a7715f935270f45a65220475970bfbd0bd11755d Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 20:09:41 +0530
Subject: [PATCH 14/43] Update azure-pipelines.yml
---
azure-pipelines.yml | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 5bcc130..55a5859 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -54,13 +54,13 @@ stages:
- stage: Deploy
displayName: 'Deploy Stage'
dependsOn: Build # Run deploy only if the build succeeds
- environment: 'deploy'# approval environment
- strategy:
- runOnce:
- Deploy:
jobs:
- job: UnitTests
displayName: 'Run Deploy '
+ environment: 'deploy'# approval environment
+ strategy:
+ runOnce:
+ Deploy:
steps:
- task: Maven@4
inputs:
From 448b0cebf39dc11aade21e1db3ee1851b7df6bd6 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 20:17:48 +0530
Subject: [PATCH 15/43] Update azure-pipelines.yml
---
azure-pipelines.yml | 48 ++++++++++++++++++++++++++++-----------------
1 file changed, 30 insertions(+), 18 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 55a5859..861d54d 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -51,25 +51,37 @@ stages:
displayName: 'Maven Unit Tests'
# Stage 3: Deploy
+stages:
- stage: Deploy
displayName: 'Deploy Stage'
- dependsOn: Build # Run deploy only if the build succeeds
+ dependsOn: Build # Run deploy only if the build succeeds
jobs:
- - job: UnitTests
- displayName: 'Run Deploy '
- environment: 'deploy'# approval environment
+ - job: DeployJob
+ displayName: 'Run Deploy'
+ environment:
+ name: 'DeployEnv' # Environment name for deployment (can be set in Azure Pipelines UI)
+ resourceName: 'deploy' # Optional: Environment resource name
+ approval:
+ approvals:
+ - type: Manual
+ timeout: '1h' # Timeout if not approved within an hour
+ users:
+ - 'shruti.dhanwade@amrutsoftware.com'
+ - 'dholerahul707@gmail.com'
+ instructions: 'Please approve the deployment to the production environment.'
+
strategy:
- runOnce:
- Deploy:
- steps:
- - task: Maven@4
- inputs:
- mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
- goals: 'deploy'
- publishJUnitResults: true
- testResultsFiles: '**/surefire-reports/TEST-*.xml'
- javaHomeOption: 'JDKVersion'
- mavenVersionOption: 'Default'
- mavenAuthenticateFeed: false
- effectivePomSkip: false
- sonarQubeRunAnalysis: false
+ runOnce:
+ deploy:
+ steps:
+ - task: Maven@4
+ inputs:
+ mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
+ goals: 'deploy'
+ publishJUnitResults: true
+ testResultsFiles: '**/surefire-reports/TEST-*.xml'
+ javaHomeOption: 'JDKVersion'
+ mavenVersionOption: 'Default'
+ mavenAuthenticateFeed: false
+ effectivePomSkip: false
+ sonarQubeRunAnalysis: false
From 72cdd962da0604b15f8c8f99178b21ce5f9901a9 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 20:25:43 +0530
Subject: [PATCH 16/43] Update azure-pipelines.yml
---
azure-pipelines.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 861d54d..8ea5a55 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -59,7 +59,7 @@ stages:
- job: DeployJob
displayName: 'Run Deploy'
environment:
- name: 'DeployEnv' # Environment name for deployment (can be set in Azure Pipelines UI)
+ name: 'deploy' # Environment name for deployment (can be set in Azure Pipelines UI)
resourceName: 'deploy' # Optional: Environment resource name
approval:
approvals:
From 60a4105907c84f4c8cf2e99ba67098e0aa32b543 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 20:43:41 +0530
Subject: [PATCH 17/43] Update azure-pipelines.yml
---
azure-pipelines.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 8ea5a55..0014e29 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -11,7 +11,7 @@ pool:
stages:
-# Stage 1: Build
+# Stage 1: Build..
- stage: Build
displayName: 'Build Stage'
jobs:
From 87926a5e67c8dd4323404beaee6edb2300864794 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 20:53:02 +0530
Subject: [PATCH 18/43] Update azure-pipelines.yml
---
azure-pipelines.yml | 13 +------------
1 file changed, 1 insertion(+), 12 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 0014e29..8e7fa86 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -58,18 +58,7 @@ stages:
jobs:
- job: DeployJob
displayName: 'Run Deploy'
- environment:
- name: 'deploy' # Environment name for deployment (can be set in Azure Pipelines UI)
- resourceName: 'deploy' # Optional: Environment resource name
- approval:
- approvals:
- - type: Manual
- timeout: '1h' # Timeout if not approved within an hour
- users:
- - 'shruti.dhanwade@amrutsoftware.com'
- - 'dholerahul707@gmail.com'
- instructions: 'Please approve the deployment to the production environment.'
-
+ environment: deploy1
strategy:
runOnce:
deploy:
From 84e65e979b1503a56272f4c4fd33c30859776045 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 21:09:26 +0530
Subject: [PATCH 19/43] Set up CI with Azure Pipelines
[skip ci]
---
azure-pipelines.yml | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/azure-pipelines.yml b/azure-pipelines.yml
index 8e7fa86..959f07e 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -56,13 +56,12 @@ stages:
displayName: 'Deploy Stage'
dependsOn: Build # Run deploy only if the build succeeds
jobs:
- - job: DeployJob
- displayName: 'Run Deploy'
- environment: deploy1
- strategy:
- runOnce:
- deploy:
- steps:
+ - deployment:
+ environment: 'deploy'
+ strategy:
+ runOnce:
+ deploy:
+ steps:
- task: Maven@4
inputs:
mavenPomFile: '/myagent/_work/4/s/my-app/pom.xml'
From 1657094e1f0328ede24b0264703d89cba13ca811 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Mon, 23 Sep 2024 21:10:48 +0530
Subject: [PATCH 20/43] 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 959f07e..5c4db3e 100644
--- a/azure-pipelines.yml
+++ b/azure-pipelines.yml
@@ -51,7 +51,7 @@ stages:
displayName: 'Maven Unit Tests'
# Stage 3: Deploy
-stages:
+
- stage: Deploy
displayName: 'Deploy Stage'
dependsOn: Build # Run deploy only if the build succeeds
From 512c9c01e2ddbfec6526d29761fb745b46492ec9 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Tue, 4 Feb 2025 13:52:14 +0530
Subject: [PATCH 21/43] Update README.md
---
README.md | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 6820115..fff590a 100644
--- a/README.md
+++ b/README.md
@@ -1 +1,3 @@
-# jenkins-pipeline-example
\ No newline at end of file
+# jenkins-pipeline-example
+
+webhook trigger
From ced88eb54e843b870ba9fad752070ec80e6cfd1f Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Tue, 4 Feb 2025 13:54:56 +0530
Subject: [PATCH 22/43] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index fff590a..84b04bc 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
# jenkins-pipeline-example
-webhook trigger
+webhook trigger-1
From 0768abe6d139e265c737a1bb050c9c0dfc062ad4 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Tue, 4 Feb 2025 13:56:10 +0530
Subject: [PATCH 23/43] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 84b04bc..75e3ac5 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
# jenkins-pipeline-example
-webhook trigger-1
+webhook trigger-12
From 31ff1173caf641f1ddb9048db4ba4d89bd109a59 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Tue, 4 Feb 2025 14:20:47 +0530
Subject: [PATCH 24/43] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 75e3ac5..84b04bc 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
# jenkins-pipeline-example
-webhook trigger-12
+webhook trigger-1
From 4f71fa2e75351fde4446bad1dcd60579030261b6 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Tue, 4 Feb 2025 14:25:02 +0530
Subject: [PATCH 25/43] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 84b04bc..75e3ac5 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,3 @@
# jenkins-pipeline-example
-webhook trigger-1
+webhook trigger-12
From 34c6bb267739e77188e68719e26e8d75c02a781d Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Thu, 6 Feb 2025 14:30:31 +0530
Subject: [PATCH 26/43] Update pom.xml
---
my-app/pom.xml | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/my-app/pom.xml b/my-app/pom.xml
index e725520..b43a127 100644
--- a/my-app/pom.xml
+++ b/my-app/pom.xml
@@ -69,12 +69,27 @@
maven-project-info-reports-plugin
3.0.0
+
+
+
+
+
+ central
+ localhost.localdomain-releases
+ http://192.168.75.144:8081/artifactory/Maven
+
+
+ snapshots
+ localhost.localdomain-snapshots
+ http://192.168.75.144:8081/artifactory/Maven
+
+
dholerahul707
https://pkgs.dev.azure.com/dholerahul707/_packaging/dholerahul707/maven/v1
From 6e08861ed09ce8e3b8caff28669cd484c7312f23 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Thu, 6 Feb 2025 14:42:53 +0530
Subject: [PATCH 27/43] Update pom.xml
---
my-app/pom.xml | 11 +----------
1 file changed, 1 insertion(+), 10 deletions(-)
diff --git a/my-app/pom.xml b/my-app/pom.xml
index b43a127..779fb13 100644
--- a/my-app/pom.xml
+++ b/my-app/pom.xml
@@ -90,16 +90,7 @@
http://192.168.75.144:8081/artifactory/Maven
-
- dholerahul707
- https://pkgs.dev.azure.com/dholerahul707/_packaging/dholerahul707/maven/v1
-
- true
-
-
- true
-
-
+
From 1961d1f6c9bee799289dec509a1a068d9826d98e Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Thu, 6 Feb 2025 14:43:21 +0530
Subject: [PATCH 28/43] Update README.md
---
README.md | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/README.md b/README.md
index 75e3ac5..1e932f6 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,14 @@
# jenkins-pipeline-example
webhook trigger-12
+
+
+ dholerahul707
+ https://pkgs.dev.azure.com/dholerahul707/_packaging/dholerahul707/maven/v1
+
+ true
+
+
+ true
+
+
From 9c031132ea7a5e81db17d70763073bde400e5968 Mon Sep 17 00:00:00 2001
From: GitLab CI/CD
Date: Wed, 12 Feb 2025 06:39:50 +0000
Subject: [PATCH 29/43] Store Jira Issue ID: 10016
---
jira_issue.txt | 1 +
1 file changed, 1 insertion(+)
create mode 100644 jira_issue.txt
diff --git a/jira_issue.txt b/jira_issue.txt
new file mode 100644
index 0000000..7d8fb79
--- /dev/null
+++ b/jira_issue.txt
@@ -0,0 +1 @@
+jira_issue_id: 10016
From 180465166c93b04ce91d0310474ee0b38e78b988 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 12 Mar 2025 15:09:16 +0530
Subject: [PATCH 30/43] Update pom.xml
---
my-app/pom.xml | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/my-app/pom.xml b/my-app/pom.xml
index 779fb13..2dd98f9 100644
--- a/my-app/pom.xml
+++ b/my-app/pom.xml
@@ -79,16 +79,19 @@
-
- central
- localhost.localdomain-releases
- http://192.168.75.144:8081/artifactory/Maven
-
+
snapshots
localhost.localdomain-snapshots
http://192.168.75.144:8081/artifactory/Maven
+
+
+
+ central
+ ip-172-31-20-73.ec2.internal-releases
+ http://54.144.64.253:8081/artifactory/libs-release
+
From 06ca9893954f448f54e8e2e4b1bd61f85bab9886 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 12 Mar 2025 15:23:58 +0530
Subject: [PATCH 31/43] Update pom.xml
---
my-app/pom.xml | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/my-app/pom.xml b/my-app/pom.xml
index 2dd98f9..ffb0418 100644
--- a/my-app/pom.xml
+++ b/my-app/pom.xml
@@ -79,13 +79,7 @@
-
-
- snapshots
- localhost.localdomain-snapshots
- http://192.168.75.144:8081/artifactory/Maven
-
-
+
central
From c98eab1b85c25a0c38d51da3d707971b61f28630 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 12 Mar 2025 15:26:34 +0530
Subject: [PATCH 32/43] Update pom.xml
---
my-app/pom.xml | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/my-app/pom.xml b/my-app/pom.xml
index ffb0418..2ff8788 100644
--- a/my-app/pom.xml
+++ b/my-app/pom.xml
@@ -87,6 +87,14 @@
http://54.144.64.253:8081/artifactory/libs-release
+
+ snapshots
+ ip-172-31-20-73.ec2.internal-snapshots
+ http://54.144.64.253:8081/artifactory/libs-snapshot
+
+
+
+
From b07cb8f39d1798e0f8c7e31ad3b7914b9e03407a Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 12 Mar 2025 15:29:49 +0530
Subject: [PATCH 33/43] Update pom.xml
---
my-app/pom.xml | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/my-app/pom.xml b/my-app/pom.xml
index 2ff8788..9b3fc1c 100644
--- a/my-app/pom.xml
+++ b/my-app/pom.xml
@@ -80,19 +80,18 @@
+
+ snapshots
+ ip-172-31-20-73.ec2.internal-snapshots
+ http://54.144.64.253:8081/artifactory/libs-snapshot
+
-
+
central
ip-172-31-20-73.ec2.internal-releases
http://54.144.64.253:8081/artifactory/libs-release
-
- snapshots
- ip-172-31-20-73.ec2.internal-snapshots
- http://54.144.64.253:8081/artifactory/libs-snapshot
-
-
From 069f294e188d057593803bbc6dc5e970931cc7da Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 7 May 2025 11:07:16 +0530
Subject: [PATCH 34/43] Update README.md
---
README.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/README.md b/README.md
index 1e932f6..3d78397 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
+#USING WEBHOOK
# jenkins-pipeline-example
webhook trigger-12
From e81a0ceb9bbcaaab49c302a53b7fc1b5e8300738 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 7 May 2025 11:15:14 +0530
Subject: [PATCH 35/43] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index 3d78397..bed9409 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-#USING WEBHOOK
+#USING WEBHOOK1
# jenkins-pipeline-example
webhook trigger-12
From bd928a8133e47bca549d4a79f537f2f8beeb3911 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 7 May 2025 11:17:44 +0530
Subject: [PATCH 36/43] Update Jenkinsfile
---
my-app/Jenkinsfile | 1 +
1 file changed, 1 insertion(+)
diff --git a/my-app/Jenkinsfile b/my-app/Jenkinsfile
index 6ebdccf..5b35653 100644
--- a/my-app/Jenkinsfile
+++ b/my-app/Jenkinsfile
@@ -4,6 +4,7 @@ pipeline {
tools {
maven "MAVEN"
jdk "JDK"
+ //MVN
}
stages {
From 3c95adce3004efe1cf208cb36197cd62f1e8ae9f Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 7 May 2025 11:22:26 +0530
Subject: [PATCH 37/43] Update jira_issue.txt
---
jira_issue.txt | 1 +
1 file changed, 1 insertion(+)
diff --git a/jira_issue.txt b/jira_issue.txt
index 7d8fb79..0b6ec71 100644
--- a/jira_issue.txt
+++ b/jira_issue.txt
@@ -1 +1,2 @@
jira_issue_id: 10016
+#webhook
From 58da0cd64a6d3854a78d0b7916de20fd6a22e22f Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 7 May 2025 11:30:47 +0530
Subject: [PATCH 38/43] Update jira_issue.txt
---
jira_issue.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jira_issue.txt b/jira_issue.txt
index 0b6ec71..acb4389 100644
--- a/jira_issue.txt
+++ b/jira_issue.txt
@@ -1,2 +1,2 @@
jira_issue_id: 10016
-#webhook
+#webhook1
From 444215df508acb95842dacbbe09f7a23fe5cef47 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 7 May 2025 11:50:36 +0530
Subject: [PATCH 39/43] Update jira_issue.txt
---
jira_issue.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jira_issue.txt b/jira_issue.txt
index acb4389..320352d 100644
--- a/jira_issue.txt
+++ b/jira_issue.txt
@@ -1,2 +1,2 @@
jira_issue_id: 10016
-#webhook1
+
From ecb95dc72b8b543a0ecd89af6ce9842aa337ed59 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 7 May 2025 11:51:10 +0530
Subject: [PATCH 40/43] Update jira_issue.txt
---
jira_issue.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/jira_issue.txt b/jira_issue.txt
index 320352d..93efcfb 100644
--- a/jira_issue.txt
+++ b/jira_issue.txt
@@ -1,2 +1,2 @@
-jira_issue_id: 10016
+jira_issue_id: 10016 .
From d4ff449976b151ddc11591e46fd806723b592f82 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Wed, 21 May 2025 15:53:09 +0530
Subject: [PATCH 41/43] Update README.md
---
README.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/README.md b/README.md
index bed9409..c1046d1 100644
--- a/README.md
+++ b/README.md
@@ -1,7 +1,7 @@
#USING WEBHOOK1
# jenkins-pipeline-example
-webhook trigger-12
+webhook trigger-11
dholerahul707
From ff8fd5411cb35fa02e7269aa718cbd26cf188f02 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Tue, 10 Jun 2025 15:21:23 +0530
Subject: [PATCH 42/43] Update pom.xml
---
my-app/pom.xml | 31 +++++++++++++++----------------
1 file changed, 15 insertions(+), 16 deletions(-)
diff --git a/my-app/pom.xml b/my-app/pom.xml
index 9b3fc1c..ca3a7fc 100644
--- a/my-app/pom.xml
+++ b/my-app/pom.xml
@@ -25,6 +25,11 @@
4.11
test
+
+ org.sonarsource.scanner.maven
+ sonar-maven-plugin
+ 3.10.0.2594
+
@@ -77,25 +82,19 @@
+
-
-
-
- snapshots
- ip-172-31-20-73.ec2.internal-snapshots
- http://54.144.64.253:8081/artifactory/libs-snapshot
-
-
-
+
central
- ip-172-31-20-73.ec2.internal-releases
- http://54.144.64.253:8081/artifactory/libs-release
+ ip-172-31-13-156.ap-south-1.compute.internal-releases
+ http://15.207.55.160:8081/artifactory/app-lib
-
-
-
-
-
+
+ snapshots
+ ip-172-31-13-156.ap-south-1.compute.internal-snapshots
+ http://15.207.55.160:8081/artifactory/app-lib
+
+
From 07d254270fa5262c8555638b0abafdaf2d4d2ff3 Mon Sep 17 00:00:00 2001
From: Shrutidhanawade <162552698+Shrutidhanawade@users.noreply.github.com>
Date: Tue, 10 Jun 2025 16:44:07 +0530
Subject: [PATCH 43/43] Update pom.xml
---
my-app/pom.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/my-app/pom.xml b/my-app/pom.xml
index ca3a7fc..7cf8173 100644
--- a/my-app/pom.xml
+++ b/my-app/pom.xml
@@ -33,6 +33,7 @@
+ ${project.artifactId}-${project.version}-${env.BUILD_NUMBER}