From dd1423019a5a7dd69af33666a745ae85f38fcc5d Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Wed, 2 Nov 2022 00:36:32 +0530 Subject: [PATCH 01/11] Create pom.xml --- pom.xml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 pom.xml diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..bbfa730 --- /dev/null +++ b/pom.xml @@ -0,0 +1,7 @@ + + 4.0.0 + + com.mycompany.app + my-app + 1 + From fc7229bc49f4fcc73e7869d033d20de024e852d8 Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Thu, 3 Nov 2022 00:53:13 +0530 Subject: [PATCH 02/11] Update pom.xml --- pom.xml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index bbfa730..b989b00 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,13 @@ 4.0.0 + + com.mycompany.app + my-app + 1 + + com.mycompany.app - my-app + my-module 1 From 5493742647de7b498e32f5c07764c5c0cb4d0dcb Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Thu, 3 Nov 2022 00:55:45 +0530 Subject: [PATCH 03/11] Update pom.xml --- pom.xml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/pom.xml b/pom.xml index b989b00..bbfa730 100644 --- a/pom.xml +++ b/pom.xml @@ -1,13 +1,7 @@ 4.0.0 - - com.mycompany.app - my-app - 1 - - com.mycompany.app - my-module + my-app 1 From c8f7eea89d264a530e3c5bcff7bb1c3ceb6bc0a5 Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Mon, 26 Feb 2024 13:24:24 +0530 Subject: [PATCH 04/11] Update Jenkinsfile --- sonarqube/Jenkinsfile | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/sonarqube/Jenkinsfile b/sonarqube/Jenkinsfile index 72d66c1..cbd74d2 100644 --- a/sonarqube/Jenkinsfile +++ b/sonarqube/Jenkinsfile @@ -1,12 +1,12 @@ pipeline{ agent any environment { - PATH = "$PATH:/opt/apache-maven-3.8.2/bin" + PATH = "$PATH:/usr/share/maven/bin" } stages{ stage('GetCode'){ steps{ - git 'https://github.com/ravdy/javaloginapp.git' + git 'https://github.com/saikrishna-M-8520/DevOps.git' } } stage('Build'){ @@ -17,13 +17,34 @@ pipeline{ stage('SonarQube analysis') { // def scannerHome = tool 'SonarScanner 4.0'; steps{ - withSonarQubeEnv('sonarqube-8.9') { + withSonarQubeEnv('sonarqube-8.3') { // If you have configured more than one global server connection, you can specify its name // sh "${scannerHome}/bin/sonar-scanner" sh "mvn sonar:sonar" } } } + stage('Upload jar To Nexus'){ + steps{ + script{ + nexusArtifactUploader artifacts: [ + [ + artifactId: 'my-app', + classifier: '', + file: "target/my-app-1.jar", + type: 'jar' + ] + ], + credentialsId: 'nexus3', + groupId: 'com.mycompany.app', + nexusUrl: '18.233.63.231:8081', + nexusVersion: 'nexus3', + protocol: 'http', + repository: 'simpleapp-releases', + version: '1' + } + } + } } } From 1f908ef0035fccee9f4bc1be7888bb2facb7f78d Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Mon, 26 Feb 2024 13:45:55 +0530 Subject: [PATCH 05/11] Update Jenkinsfile From 55519b33dc0e8307830b2edb179df76a66f1e699 Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:50:41 +0530 Subject: [PATCH 06/11] Update Jenkinsfile --- sonarqube/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonarqube/Jenkinsfile b/sonarqube/Jenkinsfile index cbd74d2..97595e0 100644 --- a/sonarqube/Jenkinsfile +++ b/sonarqube/Jenkinsfile @@ -40,7 +40,7 @@ pipeline{ nexusUrl: '18.233.63.231:8081', nexusVersion: 'nexus3', protocol: 'http', - repository: 'simpleapp-releases', + repository: 'vprofile-release', version: '1' } } From 99006046bdb0cc2b9303c160452823b91182a7da Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Mon, 26 Feb 2024 15:56:05 +0530 Subject: [PATCH 07/11] Update Jenkinsfile --- sonarqube/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonarqube/Jenkinsfile b/sonarqube/Jenkinsfile index 97595e0..d194381 100644 --- a/sonarqube/Jenkinsfile +++ b/sonarqube/Jenkinsfile @@ -37,7 +37,7 @@ pipeline{ ], credentialsId: 'nexus3', groupId: 'com.mycompany.app', - nexusUrl: '18.233.63.231:8081', + nexusUrl: '13.201.168.183:8081', nexusVersion: 'nexus3', protocol: 'http', repository: 'vprofile-release', From d4e67a85ccc2d3fddb7e83d89d27560421a08877 Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Fri, 22 Mar 2024 00:13:35 +0530 Subject: [PATCH 08/11] Update Jenkinsfile --- sonarqube/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonarqube/Jenkinsfile b/sonarqube/Jenkinsfile index d194381..0f8aa2a 100644 --- a/sonarqube/Jenkinsfile +++ b/sonarqube/Jenkinsfile @@ -37,7 +37,7 @@ pipeline{ ], credentialsId: 'nexus3', groupId: 'com.mycompany.app', - nexusUrl: '13.201.168.183:8081', + nexusUrl: '54.172.53.83:8081', nexusVersion: 'nexus3', protocol: 'http', repository: 'vprofile-release', From 47952fb40d3810b68303b72c2790db3ac6bd766c Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Fri, 2 Aug 2024 14:43:36 +0530 Subject: [PATCH 09/11] Update Jenkinsfile --- sonarqube/Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonarqube/Jenkinsfile b/sonarqube/Jenkinsfile index 0f8aa2a..8171c04 100644 --- a/sonarqube/Jenkinsfile +++ b/sonarqube/Jenkinsfile @@ -37,7 +37,7 @@ pipeline{ ], credentialsId: 'nexus3', groupId: 'com.mycompany.app', - nexusUrl: '54.172.53.83:8081', + nexusUrl: '13.201.104.202:8081', nexusVersion: 'nexus3', protocol: 'http', repository: 'vprofile-release', From d2242d3b2fa25cc011901cd82e1377dfc90dcadb Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:12:52 +0530 Subject: [PATCH 10/11] Update pom.xml --- pom.xml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index bbfa730..4986383 100644 --- a/pom.xml +++ b/pom.xml @@ -1,7 +1,16 @@ - + 4.0.0 - - com.mycompany.app - my-app - 1 + + com.example + my-java-17-project + 1.0-SNAPSHOT + + + 17 + 17 + + + + From b91427334aa61a3d7856c05bbde0535ae13f6875 Mon Sep 17 00:00:00 2001 From: saikrishna-M-8520 <60924420+saikrishna-M-8520@users.noreply.github.com> Date: Tue, 24 Sep 2024 17:23:59 +0530 Subject: [PATCH 11/11] Update Jenkinsfile --- sonarqube/Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sonarqube/Jenkinsfile b/sonarqube/Jenkinsfile index 8171c04..1fc60b2 100644 --- a/sonarqube/Jenkinsfile +++ b/sonarqube/Jenkinsfile @@ -29,15 +29,15 @@ pipeline{ script{ nexusArtifactUploader artifacts: [ [ - artifactId: 'my-app', + artifactId: 'my-java-17-project', classifier: '', - file: "target/my-app-1.jar", + file: "target/my-java-17-project-1.0-SNAPSHOT.jar", type: 'jar' ] ], credentialsId: 'nexus3', groupId: 'com.mycompany.app', - nexusUrl: '13.201.104.202:8081', + nexusUrl: '54.236.196.83:8081', nexusVersion: 'nexus3', protocol: 'http', repository: 'vprofile-release',