From b8bf100f699cc46ae433b7be4c18b007ae577a1a Mon Sep 17 00:00:00 2001 From: bhagyashreep032 Date: Mon, 17 Mar 2025 11:47:25 +0530 Subject: [PATCH 01/10] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 171e3d4..0dace42 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,9 @@ pipeline{ - agent {label 'angular'} + agent any stages{ stage('Git Checkout Stage'){ steps{ - git branch: 'main', url: 'https://github.com/sudheer76R/java-example.git' + git branch: 'main', url: 'https://github.com/bhagyashreep032/java-example.git' } } stage('Build Stage'){ From af3e901b506368c5bcfadab4a443ffb61fd4606f Mon Sep 17 00:00:00 2001 From: bhagyashreep032 Date: Wed, 19 Mar 2025 16:07:17 +0530 Subject: [PATCH 02/10] Update Jenkinsfile --- Jenkinsfile | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0dace42..df4ef89 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,22 +1,20 @@ pipeline{ - agent any + agent { label 'maven-agent'} stages{ stage('Git Checkout Stage'){ steps{ git branch: 'main', url: 'https://github.com/bhagyashreep032/java-example.git' } - } - stage('Build Stage'){ + } + stage('Test Stage'){ steps{ - sh 'mvn clean install' + sh 'mvn test' } } - stage('SonarQube Analysis Stage') { + stage('Build Stage'){ steps{ - withSonarQubeEnv('sonarqube-server') { - sh "mvn clean verify sonar:sonar" - } + sh 'mvn clean install' } - } + } } } From 0a0b22b3faee4e956d2f7dffe5f5924aa138f4eb Mon Sep 17 00:00:00 2001 From: bhagyashreep032 Date: Thu, 20 Mar 2025 15:02:06 +0530 Subject: [PATCH 03/10] Update pom.xml --- pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pom.xml b/pom.xml index b586f6f..650028f 100644 --- a/pom.xml +++ b/pom.xml @@ -64,4 +64,15 @@ + + + artifactory + http://3.111.171.58:8081/artifactory/maven/ + + + artifactory + http://3.111.171.58:8081/artifactory/libs-snapshot-local + + + From ab36972afd5991301f5f2fdd22539a50ef7c871b Mon Sep 17 00:00:00 2001 From: bhagyashreep032 Date: Fri, 21 Mar 2025 10:09:38 +0530 Subject: [PATCH 04/10] Update Jenkinsfile --- Jenkinsfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index df4ef89..42884b4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,11 +6,7 @@ pipeline{ git branch: 'main', url: 'https://github.com/bhagyashreep032/java-example.git' } } - stage('Test Stage'){ - steps{ - sh 'mvn test' - } - } + stage('Build Stage'){ steps{ sh 'mvn clean install' From d0b6ad1c0909e26d8d6f81bf964f4e50fe33b6b0 Mon Sep 17 00:00:00 2001 From: bhagyashreep032 Date: Fri, 21 Mar 2025 10:10:30 +0530 Subject: [PATCH 05/10] Update pom.xml --- pom.xml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pom.xml b/pom.xml index 650028f..b586f6f 100644 --- a/pom.xml +++ b/pom.xml @@ -64,15 +64,4 @@ - - - artifactory - http://3.111.171.58:8081/artifactory/maven/ - - - artifactory - http://3.111.171.58:8081/artifactory/libs-snapshot-local - - - From c4ec3855644554914fe75d4cda03f476ca690b87 Mon Sep 17 00:00:00 2001 From: bhagyashreep032 Date: Fri, 21 Mar 2025 10:16:15 +0530 Subject: [PATCH 06/10] Update pom.xml From ed02bf92b328b98b9259c04cba3548eca37f6ed8 Mon Sep 17 00:00:00 2001 From: bhagyashreep032 Date: Fri, 21 Mar 2025 10:20:34 +0530 Subject: [PATCH 07/10] Update pom.xml --- pom.xml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pom.xml b/pom.xml index b586f6f..650028f 100644 --- a/pom.xml +++ b/pom.xml @@ -64,4 +64,15 @@ + + + artifactory + http://3.111.171.58:8081/artifactory/maven/ + + + artifactory + http://3.111.171.58:8081/artifactory/libs-snapshot-local + + + From 6e82a444214674092f8c6b42c5b6f792e89c024f Mon Sep 17 00:00:00 2001 From: bhagyashreep032 Date: Fri, 21 Mar 2025 22:24:59 +0530 Subject: [PATCH 08/10] Update pom.xml --- pom.xml | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pom.xml b/pom.xml index 650028f..b586f6f 100644 --- a/pom.xml +++ b/pom.xml @@ -64,15 +64,4 @@ - - - artifactory - http://3.111.171.58:8081/artifactory/maven/ - - - artifactory - http://3.111.171.58:8081/artifactory/libs-snapshot-local - - - From debc057be33ed36c35fcd9f1ad0b6cc5eb61d43b Mon Sep 17 00:00:00 2001 From: bhagyashreep032 Date: Sat, 22 Mar 2025 19:20:40 +0530 Subject: [PATCH 09/10] Update pom.xml --- pom.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/pom.xml b/pom.xml index b586f6f..0d62f5b 100644 --- a/pom.xml +++ b/pom.xml @@ -64,4 +64,5 @@ + From f7152c0989f8c06cf98bef6772d26ad6c17ded1f Mon Sep 17 00:00:00 2001 From: bhagyashreep032 Date: Sat, 22 Mar 2025 19:21:05 +0530 Subject: [PATCH 10/10] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 42884b4..7402b4e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,7 +9,7 @@ pipeline{ stage('Build Stage'){ steps{ - sh 'mvn clean install' + sh 'mvn clean package' } } }