From 4fafa18c80264f7925c2fe300f26627fc7085c63 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Wed, 22 Sep 2021 12:30:51 +0530 Subject: [PATCH 01/37] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 9a199bea..9f2b8b8a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,2 @@ Sample Java Applicaiton V3.2 -asd From 52d3f2827fe18946c96eb0e32b624e2f6e897f5c Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Wed, 22 Sep 2021 12:35:30 +0530 Subject: [PATCH 02/37] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9f2b8b8a..ea6335ce 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ Sample Java Applicaiton V3.2 +fwefew From 7c1370e238a105914ab62184ef9a621f77b88a92 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Wed, 22 Sep 2021 12:36:40 +0530 Subject: [PATCH 03/37] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index ea6335ce..9f2b8b8a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,2 @@ Sample Java Applicaiton V3.2 -fwefew From 7c4c4f9b16665a03442c9707446de57f48c9b321 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Wed, 22 Sep 2021 12:38:26 +0530 Subject: [PATCH 04/37] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9f2b8b8a..18ca6763 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ Sample Java Applicaiton V3.2 +fewvwe From d30481cf1cc3f9a4f26e916380e237686978555e Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Wed, 22 Sep 2021 12:42:34 +0530 Subject: [PATCH 05/37] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 18ca6763..9f2b8b8a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,2 @@ Sample Java Applicaiton V3.2 -fewvwe From 74c27c7da1307fb40bc58aa0e40c4908b76e4ef9 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Wed, 22 Sep 2021 12:46:07 +0530 Subject: [PATCH 06/37] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9f2b8b8a..5ce0b83d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ Sample Java Applicaiton V3.2 +vewberv From e4eeedf3f4d41845c8d7ab7835c2003c47a763c5 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Wed, 22 Sep 2021 12:57:47 +0530 Subject: [PATCH 07/37] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 5ce0b83d..9f2b8b8a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,2 @@ Sample Java Applicaiton V3.2 -vewberv From 15a18bba10d541f04bb5004018b9d621255e6229 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sat, 2 Oct 2021 14:36:38 +0530 Subject: [PATCH 08/37] Update Jenkinsfile --- Jenkinsfile | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7f7d6f9b..eb1df48d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,24 +5,13 @@ pipeline { steps { echo 'compiling..' git url: 'https://github.com/lerndevops/DevOpsClassCodes' - sh script: '/opt/apache-maven-3.8.1/bin/mvn compile' + sh script: 'mvn compile' } } - stage('codereview-pmd') { - steps { - echo 'codereview..' - sh script: '/opt/apache-maven-3.8.1/bin/mvn -P metrics pmd:pmd' - } - post { - success { - recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml') - } - } - } stage('unit-test') { steps { echo 'unittest..' - sh script: '/opt/apache-maven-3.8.1/bin/mvn test' + sh script: 'mvn test' } post { success { @@ -30,21 +19,10 @@ pipeline { } } } - stage('codecoverate') { - steps { - echo 'codecoverage..' - sh script: '/opt/apache-maven-3.8.1/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' - } - post { - success { - cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'target/site/cobertura/coverage.xml', conditionalCoverageTargets: '70, 0, 0', failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false - } - } - } stage('package') { steps { echo 'package......' - sh script: '/opt/apache-maven-3.8.1/bin/mvn package' + sh script: 'mvn package' } } } From c86f19f7b7ba609a28cce4e35c169852409ba947 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Mon, 4 Oct 2021 14:46:10 +0530 Subject: [PATCH 09/37] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9f2b8b8a..67ef48ff 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ Sample Java Applicaiton V3.2 +vewvewv From 4f43bfc993f654cf31029dd39273cca04ea658b3 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Tue, 5 Oct 2021 13:04:09 +0530 Subject: [PATCH 10/37] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index eb1df48d..c8588940 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,13 +5,13 @@ pipeline { steps { echo 'compiling..' git url: 'https://github.com/lerndevops/DevOpsClassCodes' - sh script: 'mvn compile' + sh script: '/opt/apache-maven-3.8.3/bin/mvn compile' } } stage('unit-test') { steps { echo 'unittest..' - sh script: 'mvn test' + sh script: '/opt/apache-maven-3.8.3/bin/mvn test' } post { success { @@ -22,7 +22,7 @@ pipeline { stage('package') { steps { echo 'package......' - sh script: 'mvn package' + sh script: '/opt/apache-maven-3.8.3/bin/mvn package' } } } From d2b6a55888f034dbc80af589fa4bd61bdafac05e Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Tue, 5 Oct 2021 13:04:40 +0530 Subject: [PATCH 11/37] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 67ef48ff..9f2b8b8a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,2 @@ Sample Java Applicaiton V3.2 -vewvewv From 0f9c88fca7c060875567f39f70c4ee027ce9b91a Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Tue, 5 Oct 2021 13:05:56 +0530 Subject: [PATCH 12/37] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9f2b8b8a..a6ca6225 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ Sample Java Applicaiton V3.2 +Adding new changes From 1cd66532f50726860656c18311412d157031e174 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Tue, 5 Oct 2021 13:07:33 +0530 Subject: [PATCH 13/37] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a6ca6225..ae188cff 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ Sample Java Applicaiton V3.2 -Adding new changes + From d3a8fbe5853cc33de697d25fdbb85bd68eb9ef75 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Tue, 5 Oct 2021 13:10:40 +0530 Subject: [PATCH 14/37] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ae188cff..dbcd92fc 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ Sample Java Applicaiton V3.2 +Added new changes From cedf03eb451fb0709c22b8db9c8fcf2b2634a47e Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sat, 16 Oct 2021 15:12:13 +0530 Subject: [PATCH 15/37] Update README.md --- README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/README.md b/README.md index dbcd92fc..9f2b8b8a 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,2 @@ Sample Java Applicaiton V3.2 - -Added new changes From 7d39f931cc9bcbce0d173e61a54d8c30873067c7 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sat, 16 Oct 2021 15:31:23 +0530 Subject: [PATCH 16/37] Update Jenkinsfile --- Jenkinsfile | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index c8588940..7f7d6f9b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,13 +5,24 @@ pipeline { steps { echo 'compiling..' git url: 'https://github.com/lerndevops/DevOpsClassCodes' - sh script: '/opt/apache-maven-3.8.3/bin/mvn compile' + sh script: '/opt/apache-maven-3.8.1/bin/mvn compile' } } + stage('codereview-pmd') { + steps { + echo 'codereview..' + sh script: '/opt/apache-maven-3.8.1/bin/mvn -P metrics pmd:pmd' + } + post { + success { + recordIssues enabledForFailure: true, tool: pmdParser(pattern: '**/target/pmd.xml') + } + } + } stage('unit-test') { steps { echo 'unittest..' - sh script: '/opt/apache-maven-3.8.3/bin/mvn test' + sh script: '/opt/apache-maven-3.8.1/bin/mvn test' } post { success { @@ -19,10 +30,21 @@ pipeline { } } } + stage('codecoverate') { + steps { + echo 'codecoverage..' + sh script: '/opt/apache-maven-3.8.1/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' + } + post { + success { + cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'target/site/cobertura/coverage.xml', conditionalCoverageTargets: '70, 0, 0', failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false + } + } + } stage('package') { steps { echo 'package......' - sh script: '/opt/apache-maven-3.8.3/bin/mvn package' + sh script: '/opt/apache-maven-3.8.1/bin/mvn package' } } } From 5d8c913335f22d61203f10d1b5ed7618d69dc85e Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sat, 16 Oct 2021 15:34:06 +0530 Subject: [PATCH 17/37] Update Jenkinsfile --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7f7d6f9b..7b2ab405 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,13 +5,13 @@ pipeline { steps { echo 'compiling..' git url: 'https://github.com/lerndevops/DevOpsClassCodes' - sh script: '/opt/apache-maven-3.8.1/bin/mvn compile' + sh script: '/opt/apache-maven-3.8.3/bin/mvn compile' } } stage('codereview-pmd') { steps { echo 'codereview..' - sh script: '/opt/apache-maven-3.8.1/bin/mvn -P metrics pmd:pmd' + sh script: '/opt/apache-maven-3.8.3/bin/mvn -P metrics pmd:pmd' } post { success { @@ -22,7 +22,7 @@ pipeline { stage('unit-test') { steps { echo 'unittest..' - sh script: '/opt/apache-maven-3.8.1/bin/mvn test' + sh script: '/opt/apache-maven-3.8.3/bin/mvn test' } post { success { @@ -33,7 +33,7 @@ pipeline { stage('codecoverate') { steps { echo 'codecoverage..' - sh script: '/opt/apache-maven-3.8.1/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' + sh script: '/opt/apache-maven-3.8.3/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' } post { success { @@ -44,7 +44,7 @@ pipeline { stage('package') { steps { echo 'package......' - sh script: '/opt/apache-maven-3.8.1/bin/mvn package' + sh script: '/opt/apache-maven-3.8.3/bin/mvn package' } } } From 8f475377d31d3cb0e3336e20b0b501c7924e758d Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sat, 16 Oct 2021 16:24:06 +0530 Subject: [PATCH 18/37] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 9f2b8b8a..a5d138a6 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ Sample Java Applicaiton V3.2 +New changes From 5804064fad30f9818cc9be4ec8756a4e9bc51528 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sat, 16 Oct 2021 21:19:03 +0530 Subject: [PATCH 19/37] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index a5d138a6..9f2b8b8a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,2 @@ Sample Java Applicaiton V3.2 -New changes From 2ffb54c8db1aa69373545540ffa797079530bbb2 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sat, 16 Oct 2021 22:48:29 +0530 Subject: [PATCH 20/37] Update deploy-kube.yml --- deploy/deploy-kube.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/deploy-kube.yml b/deploy/deploy-kube.yml index 3972f5c0..54f7e169 100755 --- a/deploy/deploy-kube.yml +++ b/deploy/deploy-kube.yml @@ -14,7 +14,7 @@ echo "No app service found" fi - name: deploy app - shell: kubectl create deploy myapp --image=lerndevops/samplejavaapp:{{ build }} + shell: kubectl create deploy myapp --image=08170/samplejavaapp:{{ build }} - name: increase replicas shell: kubectl scale deploy myapp --replicas=2 - name: deploy service From 8bfc6038b8ab0743b0dda5db20f75f61969d9b61 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sat, 16 Oct 2021 22:51:05 +0530 Subject: [PATCH 21/37] Update deploy-kube.yml --- deploy/deploy-kube.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/deploy-kube.yml b/deploy/deploy-kube.yml index 54f7e169..51274fb6 100755 --- a/deploy/deploy-kube.yml +++ b/deploy/deploy-kube.yml @@ -14,7 +14,7 @@ echo "No app service found" fi - name: deploy app - shell: kubectl create deploy myapp --image=08170/samplejavaapp:{{ build }} + shell: kubectl create deploy myapp --image=08170/sampleapp:{{ build }} - name: increase replicas shell: kubectl scale deploy myapp --replicas=2 - name: deploy service From f80c7bed54fa417065b129b9e64049c9ea5238f2 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Fri, 29 Oct 2021 20:14:11 +0530 Subject: [PATCH 22/37] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f2b8b8a..1a4c5b47 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -Sample Java Applicaiton V3.2 +Sample Java Applicaiton V3.3 From 2369dcc90f6b974b241b25464ea36a3fdeb75c64 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Fri, 29 Oct 2021 20:41:22 +0530 Subject: [PATCH 23/37] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7b2ab405..593792bd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { stage('compile') { steps { echo 'compiling..' - git url: 'https://github.com/lerndevops/DevOpsClassCodes' + git 'https://github.com/shubhsharm/samplejavaapp' sh script: '/opt/apache-maven-3.8.3/bin/mvn compile' } } @@ -30,7 +30,7 @@ pipeline { } } } - stage('codecoverate') { + stage('codecoverage') { steps { echo 'codecoverage..' sh script: '/opt/apache-maven-3.8.3/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' From 0f8addd077b9a3afbd401fcd8d33ad78db151a1e Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Tue, 2 Nov 2021 07:20:44 +0530 Subject: [PATCH 24/37] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 1a4c5b47..041f3319 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,2 @@ -Sample Java Applicaiton V3.3 +Sample Java Applicaiton V3.5 From c2b5675721cf2e24f51d32b1cff49d205320bcce Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Fri, 12 Nov 2021 20:44:16 +0530 Subject: [PATCH 25/37] Update deploy-kube.yml --- deploy/deploy-kube.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/deploy-kube.yml b/deploy/deploy-kube.yml index 51274fb6..54f7e169 100755 --- a/deploy/deploy-kube.yml +++ b/deploy/deploy-kube.yml @@ -14,7 +14,7 @@ echo "No app service found" fi - name: deploy app - shell: kubectl create deploy myapp --image=08170/sampleapp:{{ build }} + shell: kubectl create deploy myapp --image=08170/samplejavaapp:{{ build }} - name: increase replicas shell: kubectl scale deploy myapp --replicas=2 - name: deploy service From ca20490bc8bd1e0cf1907c124c9021ba0bb726ba Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sat, 27 Nov 2021 08:18:20 +0530 Subject: [PATCH 26/37] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 041f3319..bf87a456 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ Sample Java Applicaiton V3.5 +This is for testing From 26ba9cbb2b2ecab8b679a99cb132a893a080ec35 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sat, 27 Nov 2021 09:02:16 +0530 Subject: [PATCH 27/37] Update Jenkinsfile --- Jenkinsfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 593792bd..1cec41ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,13 +5,13 @@ pipeline { steps { echo 'compiling..' git 'https://github.com/shubhsharm/samplejavaapp' - sh script: '/opt/apache-maven-3.8.3/bin/mvn compile' + sh script: '/opt/apache-maven-3.8.4/bin/mvn compile' } } stage('codereview-pmd') { steps { echo 'codereview..' - sh script: '/opt/apache-maven-3.8.3/bin/mvn -P metrics pmd:pmd' + sh script: '/opt/apache-maven-3.8.4/bin/mvn -P metrics pmd:pmd' } post { success { @@ -22,7 +22,7 @@ pipeline { stage('unit-test') { steps { echo 'unittest..' - sh script: '/opt/apache-maven-3.8.3/bin/mvn test' + sh script: '/opt/apache-maven-3.8.4/bin/mvn test' } post { success { @@ -33,7 +33,7 @@ pipeline { stage('codecoverage') { steps { echo 'codecoverage..' - sh script: '/opt/apache-maven-3.8.3/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' + sh script: '/opt/apache-maven-3.8.4/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' } post { success { @@ -44,7 +44,7 @@ pipeline { stage('package') { steps { echo 'package......' - sh script: '/opt/apache-maven-3.8.3/bin/mvn package' + sh script: '/opt/apache-maven-3.8.4/bin/mvn package' } } } From 578e66bcbd3ff0dc5f1da68803d65aaeeae5b03a Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Sun, 19 Dec 2021 09:51:38 +0530 Subject: [PATCH 28/37] Update deploy-kube.yml --- deploy/deploy-kube.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/deploy-kube.yml b/deploy/deploy-kube.yml index 54f7e169..51274fb6 100755 --- a/deploy/deploy-kube.yml +++ b/deploy/deploy-kube.yml @@ -14,7 +14,7 @@ echo "No app service found" fi - name: deploy app - shell: kubectl create deploy myapp --image=08170/samplejavaapp:{{ build }} + shell: kubectl create deploy myapp --image=08170/sampleapp:{{ build }} - name: increase replicas shell: kubectl scale deploy myapp --replicas=2 - name: deploy service From 9760f5e9ee829bef1fe3001d537928c3e728a287 Mon Sep 17 00:00:00 2001 From: shubhsharm <68157471+shubhsharm@users.noreply.github.com> Date: Tue, 21 Dec 2021 08:56:13 +0530 Subject: [PATCH 29/37] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bf87a456..d5362f04 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ Sample Java Applicaiton V3.5 -This is for testing + From e59da5ac64d0916001865535b4e35433665864df Mon Sep 17 00:00:00 2001 From: rkrCoder <45455511+rkrCoder@users.noreply.github.com> Date: Tue, 11 Jan 2022 16:02:03 +0530 Subject: [PATCH 30/37] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d5362f04..28360fae 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ Sample Java Applicaiton V3.5 +hello this is rakesh From f19d1ca64357da24e068e228116475b4266e5542 Mon Sep 17 00:00:00 2001 From: rkrCoder <45455511+rkrCoder@users.noreply.github.com> Date: Tue, 11 Jan 2022 16:04:13 +0530 Subject: [PATCH 31/37] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 28360fae..7ecb9cb5 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ Sample Java Applicaiton V3.5 -hello this is rakesh +hello this is rakesh Raptan From 09c80fe68a368b8ce75027bf0bd5c88d10785a18 Mon Sep 17 00:00:00 2001 From: rkrCoder <45455511+rkrCoder@users.noreply.github.com> Date: Tue, 11 Jan 2022 16:10:39 +0530 Subject: [PATCH 32/37] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7ecb9cb5..cfd47830 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ Sample Java Applicaiton V3.5 -hello this is rakesh Raptan +hello this is rakesh Raptan . Again changed From 51b53bb7109c98b9085203544b61850bffc9d6ad Mon Sep 17 00:00:00 2001 From: rkrCoder <45455511+rkrCoder@users.noreply.github.com> Date: Tue, 11 Jan 2022 16:26:07 +0530 Subject: [PATCH 33/37] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index cfd47830..d5362f04 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ Sample Java Applicaiton V3.5 -hello this is rakesh Raptan . Again changed From 1911e25d1d90199080d00179d93c378b64da14c6 Mon Sep 17 00:00:00 2001 From: rkrCoder <45455511+rkrCoder@users.noreply.github.com> Date: Tue, 11 Jan 2022 17:26:31 +0530 Subject: [PATCH 34/37] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index d5362f04..5af952a1 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ Sample Java Applicaiton V3.5 +i am rakesh From b4c57eb6b1546d00259e46d461ba7c48bfccc19a Mon Sep 17 00:00:00 2001 From: Rakesh Raptan <45455511+rkrCoder@users.noreply.github.com> Date: Thu, 11 Jul 2024 17:36:09 +0530 Subject: [PATCH 35/37] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 5af952a1..9cbab2c8 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ Sample Java Applicaiton V3.5 -i am rakesh +i am rakesh raptan . changed on 11-07-24 From 9bd29b4bce78f874e521e2530da2cda2ad3d9471 Mon Sep 17 00:00:00 2001 From: Rakesh Raptan <45455511+rkrCoder@users.noreply.github.com> Date: Thu, 11 Jul 2024 17:40:27 +0530 Subject: [PATCH 36/37] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9cbab2c8..626329e1 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ Sample Java Applicaiton V3.5 i am rakesh raptan . changed on 11-07-24 - +again changed From c63b1698cd2acb00c5e92d0fd6843a45160eeb53 Mon Sep 17 00:00:00 2001 From: Rakesh Raptan <45455511+rkrCoder@users.noreply.github.com> Date: Thu, 18 Jul 2024 16:28:30 +0530 Subject: [PATCH 37/37] Update Jenkinsfile rkr --- Jenkinsfile | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1cec41ad..70900d8c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,14 +4,14 @@ pipeline { stage('compile') { steps { echo 'compiling..' - git 'https://github.com/shubhsharm/samplejavaapp' - sh script: '/opt/apache-maven-3.8.4/bin/mvn compile' + git 'https://github.com/rkrCoder/samplejavaapp.git' + sh script: '/opt/maven/bin/mvn compile' } } stage('codereview-pmd') { steps { echo 'codereview..' - sh script: '/opt/apache-maven-3.8.4/bin/mvn -P metrics pmd:pmd' + sh script: '/opt/maven/bin/mvn -P metrics pmd:pmd' } post { success { @@ -22,7 +22,7 @@ pipeline { stage('unit-test') { steps { echo 'unittest..' - sh script: '/opt/apache-maven-3.8.4/bin/mvn test' + sh script: '/opt/maven/bin/mvn test' } post { success { @@ -32,13 +32,15 @@ pipeline { } stage('codecoverage') { steps { - echo 'codecoverage..' - sh script: '/opt/apache-maven-3.8.4/bin/mvn cobertura:cobertura -Dcobertura.report.format=xml' - } - post { - success { - cobertura autoUpdateHealth: false, autoUpdateStability: false, coberturaReportFile: 'target/site/cobertura/coverage.xml', conditionalCoverageTargets: '70, 0, 0', failUnhealthy: false, failUnstable: false, lineCoverageTargets: '80, 0, 0', maxNumberOfBuilds: 0, methodCoverageTargets: '80, 0, 0', onlyStable: false, sourceEncoding: 'ASCII', zoomCoverageChart: false - } + echo 'Running code coverage..' + script { + def mvnExitCode = sh script: '/opt/maven/bin/mvn verify', returnStatus: true + if (mvnExitCode == 0) { + currentBuild.result = 'SUCCESS' + } else { + currentBuild.result = 'FAILURE' + } + } } } stage('package') {