From 4d79bfb2c2dbb5c2e34f0ff0c98ce455d350fb6b Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Tue, 26 Nov 2019 05:37:33 +0530 Subject: [PATCH 01/88] updated --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index fefd2a53b..27a5da6f7 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,6 @@ You should now have a Jetty server running on localhost:8080. Navigate to [http: To use the built in server adapters of Eclipse, instead of doing "Run As -> Maven Build..." you can do - Run As -> Run on Server - Select the server you want to run on, e.g. Apache Tomcat 8 and click ok -- *Do not use the suggested J2EE Preview server* as it is outdated, deprecated and does not support Servlet 3, which is required for this application +- *Do not use the suggested J2EE Preview server* as it is outdated, deprecated and does not support Servlet 3, which is required for this applications -*** End of documentation \ No newline at end of file +*** End of documentation From e5f9193f8dc8a89825261a07059a366731b6441b Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Tue, 26 Nov 2019 05:40:50 +0530 Subject: [PATCH 02/88] again updated --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 27a5da6f7..f887e4b65 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ Addressbook Tutorial This tutorial teaches you some of the basic concepts in [Vaadin Framework](https://vaadin.com). It is meant to be a fast read for learning how to get started - not an example on how application should be -designed. Please note this example uses and requires Java 8 to work. +designed. Please note this example uses and requires Java 8 to work.. ![Addressbook Screenshot](addressbook_screenshot.png "Addressbook Screenshot") From 78591e139efb07a2d3b6ea29f18ddf15e9b37b68 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Thu, 28 Nov 2019 09:21:21 +0530 Subject: [PATCH 03/88] new jenkinsfile text file --- jenkinsfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 jenkinsfile diff --git a/jenkinsfile b/jenkinsfile new file mode 100644 index 000000000..80cd0c833 --- /dev/null +++ b/jenkinsfile @@ -0,0 +1,20 @@ +pipeline{ + agent any + stages{ + stage('SourceCode'){ + steps{ + git 'https://github.com/devops-trainer/DevOpsClassCodes.git' + } + } + stage('Compile'){ + steps{ + sh 'mvn compile' + } + } + stage('Package'){ + steps{ + sh 'mvn package' + } + } + } +} From 879effb4a0929f85044dc120d9ce95742d58d76d Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Thu, 28 Nov 2019 09:22:35 +0530 Subject: [PATCH 04/88] Rename the file --- jenkinsfile => Jenkinsfile | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename jenkinsfile => Jenkinsfile (100%) diff --git a/jenkinsfile b/Jenkinsfile similarity index 100% rename from jenkinsfile rename to Jenkinsfile From ad266b81fb146ba20cdd7ef7b8956479ce46a370 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Thu, 28 Nov 2019 09:25:55 +0530 Subject: [PATCH 05/88] Update Jenkinsfile --- Jenkinsfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 80cd0c833..a12195b16 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,6 +10,21 @@ pipeline{ steps{ sh 'mvn compile' } + } + stage('CodeReview'){ + steps{ + sh 'mvn pmd:pmd' + } + } + stage('UnitTest'){ + steps{ + sh 'mvn test' + } + } + stage('MetricCheck'){ + steps{ + sh 'mvn coberrura:cobertura -Dcobertura.report.format=xml' + } } stage('Package'){ steps{ From aba09501b92c858da520c37565b68bea64d0010f Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Thu, 28 Nov 2019 09:28:58 +0530 Subject: [PATCH 06/88] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a12195b16..45f029a99 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,7 +23,7 @@ pipeline{ } stage('MetricCheck'){ steps{ - sh 'mvn coberrura:cobertura -Dcobertura.report.format=xml' + sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' } } stage('Package'){ From 8278b478fcf4f5b4efba5b40dee574b245d75535 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Thu, 28 Nov 2019 09:45:44 +0530 Subject: [PATCH 07/88] Update Jenkinsfile --- Jenkinsfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 45f029a99..93025ddb1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,6 @@ pipeline{ agent any stages{ - stage('SourceCode'){ - steps{ - git 'https://github.com/devops-trainer/DevOpsClassCodes.git' - } - } stage('Compile'){ steps{ sh 'mvn compile' From e68c760919d7409798962c5269921ee25957f6b6 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sat, 30 Nov 2019 05:38:47 +0530 Subject: [PATCH 08/88] Delete Jenkinsfile --- Jenkinsfile | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 93025ddb1..000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,30 +0,0 @@ -pipeline{ - agent any - stages{ - stage('Compile'){ - steps{ - sh 'mvn compile' - } - } - stage('CodeReview'){ - steps{ - sh 'mvn pmd:pmd' - } - } - stage('UnitTest'){ - steps{ - sh 'mvn test' - } - } - stage('MetricCheck'){ - steps{ - sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' - } - } - stage('Package'){ - steps{ - sh 'mvn package' - } - } - } -} From d9a138fe49431b4ecbd17005802591124e0b97e8 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sat, 30 Nov 2019 05:39:13 +0530 Subject: [PATCH 09/88] Create Jenkinsfile --- Jenkinsfile | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..9b9e8b5a5 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,55 @@ +pipeline{ + tools { + jdk 'myjava' + maven 'mymaven' + } + agent none + stages{ + stage('Compile'){ + agent any + steps{ + sh 'mvn compile' + } + } + stage('CodeReview'){ + agent any + steps{ + sh 'mvn pmd:pmd' + } + post{ + always{ + pmd pattern: 'target/pmd.xml' + } + } + } + stage('UnitTest'){ + agent {label 'win_slave'} + steps{ + git 'https://github.com/devops-trainer/DevOpsClassCodes.git' + bat "C:/jenkinsdir/tools/hudson.tasks.Maven_MavenInstallation/mymaven/bin/mvn test" + } + post{ + always{ + junit 'target/surefire-reports/*.xml' + } + } + } + stage('MetricCheck'){ + agent any + steps{ + sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' + } + post{ + always{ + cobertura coberturaReportFile: 'target/site/cobertura/coverage.xml' + } + } + } + stage('Package'){ + agent {label 'win_slave'} + steps{ + bat "C:/jenkinsdir/tools/hudson.tasks.Maven_MavenInstallation/mymaven/bin/mvn package" + } + } + } +} From 2f69b6956bcf77e63d8b793f66e22ab972359b93 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sat, 30 Nov 2019 05:52:38 +0530 Subject: [PATCH 10/88] Delete Jenkinsfile --- Jenkinsfile | 55 ----------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 9b9e8b5a5..000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,55 +0,0 @@ -pipeline{ - tools { - jdk 'myjava' - maven 'mymaven' - } - agent none - stages{ - stage('Compile'){ - agent any - steps{ - sh 'mvn compile' - } - } - stage('CodeReview'){ - agent any - steps{ - sh 'mvn pmd:pmd' - } - post{ - always{ - pmd pattern: 'target/pmd.xml' - } - } - } - stage('UnitTest'){ - agent {label 'win_slave'} - steps{ - git 'https://github.com/devops-trainer/DevOpsClassCodes.git' - bat "C:/jenkinsdir/tools/hudson.tasks.Maven_MavenInstallation/mymaven/bin/mvn test" - } - post{ - always{ - junit 'target/surefire-reports/*.xml' - } - } - } - stage('MetricCheck'){ - agent any - steps{ - sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' - } - post{ - always{ - cobertura coberturaReportFile: 'target/site/cobertura/coverage.xml' - } - } - } - stage('Package'){ - agent {label 'win_slave'} - steps{ - bat "C:/jenkinsdir/tools/hudson.tasks.Maven_MavenInstallation/mymaven/bin/mvn package" - } - } - } -} From 3606d7950b1926bc96099854e12df4453449791f Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sat, 30 Nov 2019 07:45:27 +0530 Subject: [PATCH 11/88] Create Jenkinsfile --- Jenkinsfile | 54 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..b6beecfaa --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,54 @@ +pipeline{ + tools{ + jdk 'myjava' + maven 'mymaven' + } + agent none + stages{ + stage('Compile'){ + agent any + steps{ + sh 'mvn compile' + } + + } + stage('CodeReview'){ + agent any + steps{ + sh 'mvn pmd:pmd' + } + post{ + always{ + pmd pattern: 'target/pmd.xml' + } + } + } + stage('UnitTest'){ + agent {label 'win_slave'} + steps{ + git 'https://github.com/devops-trainer/DevOpsClassCodes.git' + bat 'mvn test' + } + + } + stage('MetriCheck'){ + agent any + steps{ + sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' + } + post{ + always{ + cobertura coberturaReportFile: 'target/site/cobertura/coverage.xml' + } + } + } + stage('Package'){ + agent any + steps{ + sh 'mvn package' + } + } + + } + + } From 769ce9224ca8f4912c2536b6fed539ef70382330 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sat, 25 Jan 2020 07:02:27 +0530 Subject: [PATCH 12/88] Delete Jenkinsfile --- Jenkinsfile | 54 ----------------------------------------------------- 1 file changed, 54 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index b6beecfaa..000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,54 +0,0 @@ -pipeline{ - tools{ - jdk 'myjava' - maven 'mymaven' - } - agent none - stages{ - stage('Compile'){ - agent any - steps{ - sh 'mvn compile' - } - - } - stage('CodeReview'){ - agent any - steps{ - sh 'mvn pmd:pmd' - } - post{ - always{ - pmd pattern: 'target/pmd.xml' - } - } - } - stage('UnitTest'){ - agent {label 'win_slave'} - steps{ - git 'https://github.com/devops-trainer/DevOpsClassCodes.git' - bat 'mvn test' - } - - } - stage('MetriCheck'){ - agent any - steps{ - sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' - } - post{ - always{ - cobertura coberturaReportFile: 'target/site/cobertura/coverage.xml' - } - } - } - stage('Package'){ - agent any - steps{ - sh 'mvn package' - } - } - - } - - } From c6dac590e764595cbda286d98c2f4cf0f22d66de Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sat, 25 Jan 2020 07:31:34 +0530 Subject: [PATCH 13/88] Create Jenkinsfile --- Jenkinsfile | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..c77f3f357 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,49 @@ +pipeline{ + tools{ + jdk 'myjava' + maven 'mymaven' + } + agent any + stages{ + stage('checkout'){ + steps{ + git 'https://github.com/devops-trainer/DevOpsClassCodes.git' + } + } + stage('Compile'){ + steps{ + sh 'mvn compile' + } + } + stage('CodeReview'){ + steps{ + sh 'mvn pmd:pmd' + } + post{ + always{ + pmd pattern: 'target/pmd.xml' + } + } + } + stage('Unittest'){ + steps{ + sh 'mvn test' + } + } + stage('Metric Check'){ + steps{ + sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' + } + post{ + always{ + cobertura coberturaReportFile: 'target/site/cobertura/coverage.xml' + } + } + } + stage('Package'){ + steps{ + sh 'mvn package' + } + } + } +} From 0abc4ccd7a82efe816ef437fcb2569e48d49e2c9 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Tue, 28 Jan 2020 06:27:50 +0530 Subject: [PATCH 14/88] Delete Jenkinsfile --- Jenkinsfile | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index c77f3f357..000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,49 +0,0 @@ -pipeline{ - tools{ - jdk 'myjava' - maven 'mymaven' - } - agent any - stages{ - stage('checkout'){ - steps{ - git 'https://github.com/devops-trainer/DevOpsClassCodes.git' - } - } - stage('Compile'){ - steps{ - sh 'mvn compile' - } - } - stage('CodeReview'){ - steps{ - sh 'mvn pmd:pmd' - } - post{ - always{ - pmd pattern: 'target/pmd.xml' - } - } - } - stage('Unittest'){ - steps{ - sh 'mvn test' - } - } - stage('Metric Check'){ - steps{ - sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' - } - post{ - always{ - cobertura coberturaReportFile: 'target/site/cobertura/coverage.xml' - } - } - } - stage('Package'){ - steps{ - sh 'mvn package' - } - } - } -} From 44e05a81ff532d3ba71da408b4fa9a9a73abaa7b Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Tue, 28 Jan 2020 07:27:12 +0530 Subject: [PATCH 15/88] Create Jenkinsfile --- Jenkinsfile | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..0e82ad2ed --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,49 @@ +pipeline{ + tools{ + jdk 'myjava' + maven 'mymaven' + } + agent any + stages{ + stage('Checkout'){ + steps{ + git 'https://github.com/devops-trainer/DevOpsClassCodes.git' + } + } + stage('Compile'){ + steps{ + sh 'mvn compile' + } + } + stage('CodeReview'){ + steps{ + sh 'mvn pmd:pmd' + } + post{ + always{ + pmd pattern: 'target/pmd.xml' + } + } + } + stage('UnitTest'){ + steps{ + sh 'mvn test' + } + } + stage('MetricCheck'){ + steps{ + sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' + } + post{ + always{ + cobertura coberturaReportFile: 'target/site/cobertura/coverage.xml' + } + } + } + stage('Package'){ + steps{ + sh 'mvn package' + } + } + } +} From 73ed5e274d3159637ded212bda715094f8a8097f Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Tue, 28 Jan 2020 08:13:03 +0530 Subject: [PATCH 16/88] Update Jenkinsfile --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0e82ad2ed..07e2f1d67 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,16 +3,18 @@ pipeline{ jdk 'myjava' maven 'mymaven' } - agent any + agent none stages{ stage('Checkout'){ + agent {label 'win_slave'} steps{ git 'https://github.com/devops-trainer/DevOpsClassCodes.git' } } stage('Compile'){ + agent {label 'win_slave'} steps{ - sh 'mvn compile' + bat 'mvn compile' } } stage('CodeReview'){ From 27a5f0f4db100a124eeaf6b99ab12a9909b1333e Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Tue, 28 Jan 2020 08:15:11 +0530 Subject: [PATCH 17/88] Update Jenkinsfile --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 07e2f1d67..daaf1023e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,6 +18,7 @@ pipeline{ } } stage('CodeReview'){ + agent any steps{ sh 'mvn pmd:pmd' } @@ -28,11 +29,13 @@ pipeline{ } } stage('UnitTest'){ + agent any steps{ sh 'mvn test' } } stage('MetricCheck'){ + agent any steps{ sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' } @@ -43,6 +46,7 @@ pipeline{ } } stage('Package'){ + agent any steps{ sh 'mvn package' } From 1c8f4dc908d21c9c5c699dd721a8ef536dae44d9 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Tue, 3 Mar 2020 06:26:13 +0530 Subject: [PATCH 18/88] Delete Jenkinsfile --- Jenkinsfile | 55 ----------------------------------------------------- 1 file changed, 55 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index daaf1023e..000000000 --- a/Jenkinsfile +++ /dev/null @@ -1,55 +0,0 @@ -pipeline{ - tools{ - jdk 'myjava' - maven 'mymaven' - } - agent none - stages{ - stage('Checkout'){ - agent {label 'win_slave'} - steps{ - git 'https://github.com/devops-trainer/DevOpsClassCodes.git' - } - } - stage('Compile'){ - agent {label 'win_slave'} - steps{ - bat 'mvn compile' - } - } - stage('CodeReview'){ - agent any - steps{ - sh 'mvn pmd:pmd' - } - post{ - always{ - pmd pattern: 'target/pmd.xml' - } - } - } - stage('UnitTest'){ - agent any - steps{ - sh 'mvn test' - } - } - stage('MetricCheck'){ - agent any - steps{ - sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' - } - post{ - always{ - cobertura coberturaReportFile: 'target/site/cobertura/coverage.xml' - } - } - } - stage('Package'){ - agent any - steps{ - sh 'mvn package' - } - } - } -} From c8cf953401a27c9edfc7bb7637123057ba981f7f Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Tue, 3 Mar 2020 08:33:53 +0530 Subject: [PATCH 19/88] Create Jenkinsfile --- Jenkinsfile | 57 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 000000000..5eaf4796b --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,57 @@ +pipeline{ + tools{ + jdk 'myjava' + maven 'mymaven' + } + + agent none + + stage('Compile'){ + agent any + steps{ + sh 'mvn compile' + } + } + stage('CodeReview'){ + agent any + steps{ + sh 'mvn pmd:pmd' + } + post{ + always{ + pmd pattern: 'target/pmd.xml' + } + } + } + stage('UnitTest'){ + agent {label 'win_slave'} + steps{ + git 'https://github.com/devops-trainer/DevOpsClassCodes.git' + bat 'mvn test' + } + post{ + always{ + junit 'target/surefire-reports/*.xml' + } + } + + } + stage('MetricCheck'){ + agent any + steps{ + sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' + } + post{ + always{ + cobertura coberturaReportFile: 'target/site/cobertura/coverage.xml' + } + } + } + stage('Package'){ + agent any + steps{ + sh 'mvn package' + } + } + } + } From c31561fc6a975b5534f06160fe4a2d9e1694b8d9 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Tue, 3 Mar 2020 08:35:28 +0530 Subject: [PATCH 20/88] Update Jenkinsfile --- Jenkinsfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5eaf4796b..2102ab794 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -53,5 +53,4 @@ pipeline{ sh 'mvn package' } } - } } From aba9ce1c930d559b70977697881bd0efc754568c Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Tue, 3 Mar 2020 08:36:15 +0530 Subject: [PATCH 21/88] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2102ab794..43f352925 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,7 +5,7 @@ pipeline{ } agent none - + stages{ stage('Compile'){ agent any steps{ @@ -54,3 +54,4 @@ pipeline{ } } } +} From e3914bd72f591eb151f21ff0f41cbd4ee7fdbc15 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sat, 7 Mar 2020 08:25:37 +0530 Subject: [PATCH 22/88] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 43f352925..1ce5dc1e2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,7 @@ pipeline{ } } stage('UnitTest'){ - agent {label 'win_slave'} + agent {label 'slave_win'} steps{ git 'https://github.com/devops-trainer/DevOpsClassCodes.git' bat 'mvn test' From 81440b4b37de48e6fdcd55567444a4c772166c38 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sat, 9 May 2020 23:06:34 +0530 Subject: [PATCH 23/88] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1ce5dc1e2..43f352925 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -24,7 +24,7 @@ pipeline{ } } stage('UnitTest'){ - agent {label 'slave_win'} + agent {label 'win_slave'} steps{ git 'https://github.com/devops-trainer/DevOpsClassCodes.git' bat 'mvn test' From 592ed6b68e685907f5824be2f1b32e4d0f9ee139 Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sat, 13 Jun 2020 08:15:43 +0530 Subject: [PATCH 24/88] Create JenkinsFile1 --- JenkinsFile1 | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 JenkinsFile1 diff --git a/JenkinsFile1 b/JenkinsFile1 new file mode 100644 index 000000000..6edfdf611 --- /dev/null +++ b/JenkinsFile1 @@ -0,0 +1,46 @@ +pipeline{ + tools{ + jdk 'myjava' + maven 'mymaven' + } + agent none + stages{ + stage('Checkout'){ + agent any + steps{ + git 'https://github.com/devops-trainer/DevOpsClassCodes.git' + } + } + stage('Compile'){ + agent any + steps{ + sh 'mvn compile' + } + } + stage('CodeReview'){ + agent any + steps{ + sh 'mvn pmd:pmd' + } + } + stage('UnitTest'){ + agent {label 'win_slave'} + steps{ + git 'https://github.com/devops-trainer/DevOpsClassCodes.git' + bat 'mvn test' + } + } + stage('MetricCheck'){ + agent any + steps{ + sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' + } + } + stage('Package'){ + agent{label 'win_slave'} + steps{ + bat 'mvn package' + } + } + } +} From 84f5e15559d16441c056907411ae4110a61d7e3f Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sun, 5 Jul 2020 23:03:49 +0530 Subject: [PATCH 25/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 6edfdf611..18a1c6d92 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,7 +1,7 @@ pipeline{ tools{ jdk 'myjava' - maven 'mymaven' + maven 'mymaven1' } agent none stages{ From 85542791bf5b5aabc4558fa39ebe93a2efc25a9a Mon Sep 17 00:00:00 2001 From: devops-trainer <33363806+devops-trainer@users.noreply.github.com> Date: Sun, 6 Sep 2020 08:36:30 +0530 Subject: [PATCH 26/88] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f887e4b65..d114b9e12 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Addressbook Tutorial +##Addressbook Tutorial ==================== This tutorial teaches you some of the basic concepts in [Vaadin Framework](https://vaadin.com). It is meant to be From d154466f42fad7ccbded9302e29de5d33e1b1990 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 30 Jan 2021 03:44:04 -0500 Subject: [PATCH 27/88] Update Jenkinsfile --- Jenkinsfile | 26 ++------------------------ 1 file changed, 2 insertions(+), 24 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 43f352925..776a4fe1b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,35 +17,13 @@ pipeline{ steps{ sh 'mvn pmd:pmd' } - post{ - always{ - pmd pattern: 'target/pmd.xml' - } - } } stage('UnitTest'){ - agent {label 'win_slave'} - steps{ - git 'https://github.com/devops-trainer/DevOpsClassCodes.git' - bat 'mvn test' - } - post{ - always{ - junit 'target/surefire-reports/*.xml' - } - } - - } - stage('MetricCheck'){ agent any steps{ - sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' - } - post{ - always{ - cobertura coberturaReportFile: 'target/site/cobertura/coverage.xml' - } + sh 'mvn test' } + } stage('Package'){ agent any From 70a2ed93fad69976dceaebc6af988b60f5bcdb24 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 30 Jan 2021 03:54:58 -0500 Subject: [PATCH 28/88] Update Jenkinsfile --- Jenkinsfile | 67 +++++++++++++++++++++++++++++++---------------------- 1 file changed, 39 insertions(+), 28 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 776a4fe1b..858b41d91 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,33 +3,44 @@ pipeline{ jdk 'myjava' maven 'mymaven' } - agent none - stages{ - stage('Compile'){ - agent any - steps{ - sh 'mvn compile' - } - } - stage('CodeReview'){ - agent any - steps{ - sh 'mvn pmd:pmd' - } - } - stage('UnitTest'){ - agent any - steps{ - sh 'mvn test' - } - - } - stage('Package'){ - agent any - steps{ - sh 'mvn package' - } - } - } + stages{ + stage('Checkout'){ + agent any + steps{ + git 'https://github.com/Sonal0409/DevOpsClassCodes.git' + } + } + stage('Compile'){ + agent any + steps{ + sh 'mvn compile' + } + } + stage('CodeReview'){ + agent any + steps{ + sh 'mvn pmd:pmd' + } + } + stage('UnitTest'){ + agent any + steps{ + sh 'mvn test' + } + } + stage('MetricCheck'){ + agent any + steps{ + sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' + } + } + stage('Package'){ + agent any + steps{ + sh 'mvn package' + } + } + + } } From e1e50e588741b44291b6986f6535253b704a0b88 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 30 Jan 2021 23:13:05 -0500 Subject: [PATCH 29/88] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 858b41d91..ede0031da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,4 @@ +# jenkinsfile for pipeline syntax pipeline{ tools{ jdk 'myjava' From ad9417b5702243558919dbff4bdf18be8f4858ba Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 30 Jan 2021 23:17:50 -0500 Subject: [PATCH 30/88] Update Jenkinsfile --- Jenkinsfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ede0031da..858b41d91 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,3 @@ -# jenkinsfile for pipeline syntax pipeline{ tools{ jdk 'myjava' From 9b445451acc2bdd922d1f6a8dd1e0570f4be289b Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 31 Jan 2021 22:03:24 -0500 Subject: [PATCH 31/88] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 858b41d91..68c550858 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,4 @@ + pipeline{ tools{ jdk 'myjava' From 20295e6820dee4dd44794e7d1cbb1079301b46f7 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 7 Feb 2021 20:02:03 -0500 Subject: [PATCH 32/88] Update Jenkinsfile --- Jenkinsfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 68c550858..e0f9afaa9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -42,6 +42,24 @@ pipeline{ sh 'mvn package' } } + stage('Deploy'){ + agent any + steps{ + sh label: '', script: '''rm -rf mydockerfile +mkdir mydockerfile +cd mydockerfile +cp /var/lib/jenkins/workspace/Package/target/addressbook.war . +touch dockerfile +cat <> dockerfile +From tomcat +ADD addressbook.war /usr/local/tomcat/webapps +EXPOSE 8080 +CMD ["catalina.sh", "run"] +EOT +sudo docker build -t myimage:$BUILD_NUMBER . +sudo docker run -itd -P myimage:$BUILD_NUMBER''' + } + } } } From 37a8ee941e2c4e2bb2e6b934366487d8773ed91a Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Thu, 18 Feb 2021 19:44:22 -0500 Subject: [PATCH 33/88] Update Jenkinsfile --- Jenkinsfile | 31 ++++++++++++------------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e0f9afaa9..e6bd60bf7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,13 +8,14 @@ pipeline{ stages{ stage('Checkout'){ agent any - steps{ + steps{ git 'https://github.com/Sonal0409/DevOpsClassCodes.git' } } stage('Compile'){ agent any steps{ + echo 'compiling..' sh 'mvn compile' } } @@ -29,12 +30,22 @@ pipeline{ steps{ sh 'mvn test' } + post { + success { + junit 'target/surefire-reports/*.xml' + } + } } stage('MetricCheck'){ agent any steps{ sh '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'){ agent any @@ -42,24 +53,6 @@ pipeline{ sh 'mvn package' } } - stage('Deploy'){ - agent any - steps{ - sh label: '', script: '''rm -rf mydockerfile -mkdir mydockerfile -cd mydockerfile -cp /var/lib/jenkins/workspace/Package/target/addressbook.war . -touch dockerfile -cat <> dockerfile -From tomcat -ADD addressbook.war /usr/local/tomcat/webapps -EXPOSE 8080 -CMD ["catalina.sh", "run"] -EOT -sudo docker build -t myimage:$BUILD_NUMBER . -sudo docker run -itd -P myimage:$BUILD_NUMBER''' - } - } } } From 6d7e16303bcae061884b2c9ace35954b89948725 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 27 Feb 2021 10:50:33 -0500 Subject: [PATCH 34/88] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index e6bd60bf7..ab4b99faf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,6 +9,7 @@ pipeline{ stage('Checkout'){ agent any steps{ + echo 'cloning..' git 'https://github.com/Sonal0409/DevOpsClassCodes.git' } } From fa5adc5583e8fe3c1c43c20856a90e86c3dc8ae4 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 6 Mar 2021 10:42:52 -0500 Subject: [PATCH 35/88] Update Jenkinsfile --- Jenkinsfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index ab4b99faf..7888154e2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,6 +54,25 @@ pipeline{ sh 'mvn package' } } + stage('Deploy'){ + agent any + steps{ + sh label: '', script: '''rm -rf mydockerfile +mkdir mydockerfile +cd mydockerfile +cp /var/lib/jenkins/workspace/Package/target/addressbook.war . +touch dockerfile +cat <> dockerfile +From tomcat +ADD addressbook.war /usr/local/tomcat/webapps +EXPOSE 8080 +CMD ["catalina.sh", "run"] +EOT +sudo docker build -t myimage:$BUILD_NUMBER . +sudo docker run -itd -P myimage:$BUILD_NUMBER''' + } + } + } } From ca39eb3ec63cb8d3841c4ac24d8c583b8b9871e1 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 6 Mar 2021 10:43:41 -0500 Subject: [PATCH 36/88] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7888154e2..b7b38d943 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -60,7 +60,7 @@ pipeline{ sh label: '', script: '''rm -rf mydockerfile mkdir mydockerfile cd mydockerfile -cp /var/lib/jenkins/workspace/Package/target/addressbook.war . +cp /var/lib/jenkins/workspace/package/target/addressbook.war . touch dockerfile cat <> dockerfile From tomcat From d9bc89baa7cb4bb832908e8ccbd2a3c3c13189d7 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 9 Mar 2021 05:56:47 -0500 Subject: [PATCH 37/88] Update Jenkinsfile --- Jenkinsfile | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b7b38d943..ab4b99faf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -54,25 +54,6 @@ pipeline{ sh 'mvn package' } } - stage('Deploy'){ - agent any - steps{ - sh label: '', script: '''rm -rf mydockerfile -mkdir mydockerfile -cd mydockerfile -cp /var/lib/jenkins/workspace/package/target/addressbook.war . -touch dockerfile -cat <> dockerfile -From tomcat -ADD addressbook.war /usr/local/tomcat/webapps -EXPOSE 8080 -CMD ["catalina.sh", "run"] -EOT -sudo docker build -t myimage:$BUILD_NUMBER . -sudo docker run -itd -P myimage:$BUILD_NUMBER''' - } - } - } } From d7ca14dddb5e9941ce4c890cfabbfc48e1a3b70f Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 6 Apr 2021 11:37:55 -0400 Subject: [PATCH 38/88] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index ab4b99faf..93bfa38d3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,7 @@ pipeline{ stage('CodeReview'){ agent any steps{ + echo 'codeReview' sh 'mvn pmd:pmd' } } From 875edbec67d45be9dbb9f0afce328f8f2e0374bc Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 6 Apr 2021 11:39:56 -0400 Subject: [PATCH 39/88] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 93bfa38d3..3639c61ba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline{ agent any steps{ echo 'compiling..' - sh 'mvn compile' + sh 'mvn compile1' } } stage('CodeReview'){ From b5d709e2c218537a2e9542fbef723e38d4c0d020 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 6 Apr 2021 11:43:17 -0400 Subject: [PATCH 40/88] Update Jenkinsfile --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 3639c61ba..a85c62d8f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,6 +19,16 @@ pipeline{ echo 'compiling..' sh 'mvn compile1' } + post { + success { + echo 'Job executed succesfully' + } + failure{ + echo ' failed due to exit code 1' + } + unstable{ + echo ' build unstable' + } } stage('CodeReview'){ agent any From 609059b62fbc24c396d69b9e5d2abdbef34f3c66 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 6 Apr 2021 11:44:53 -0400 Subject: [PATCH 41/88] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index a85c62d8f..deec81e30 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline{ agent any steps{ echo 'compiling..' - sh 'mvn compile1' + sh 'mvn compile' } post { success { From 1709735fba09688b84b4c545e4726e30897a4ab7 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 18 Apr 2021 08:29:37 -0400 Subject: [PATCH 42/88] Update Jenkinsfile --- Jenkinsfile | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index deec81e30..4aef23736 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,17 +18,7 @@ pipeline{ steps{ echo 'compiling..' sh 'mvn compile' - } - post { - success { - echo 'Job executed succesfully' - } - failure{ - echo ' failed due to exit code 1' - } - unstable{ - echo ' build unstable' - } + } } stage('CodeReview'){ agent any From f60b3e7a9c1c1400d7029cb2909e1d7ec6c5199b Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 7 Jun 2021 23:17:17 -0400 Subject: [PATCH 43/88] Update Jenkinsfile --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4aef23736..8cda58540 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,9 +28,10 @@ pipeline{ } } stage('UnitTest'){ - agent any + agent {label 'win_slave'} steps{ - sh 'mvn test' + git 'https://github.com/Sonal0409/DevOpsClassCodes.git' + bat 'mvn test' } post { success { From 5da3911c1b9485bbdf79a261481672930a43ffb0 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Wed, 9 Jun 2021 23:52:43 -0400 Subject: [PATCH 44/88] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8cda58540..da4e428a1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,10 +28,10 @@ pipeline{ } } stage('UnitTest'){ - agent {label 'win_slave'} + agent any steps{ - git 'https://github.com/Sonal0409/DevOpsClassCodes.git' - bat 'mvn test' + + sh 'mvn test' } post { success { From ab100114a871c39adc701e612feb728e559e5cc9 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 28 Jun 2021 12:52:13 -0400 Subject: [PATCH 45/88] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index d114b9e12..232fe2a18 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -##Addressbook Tutorial +##Addressbook Tutoriall ==================== This tutorial teaches you some of the basic concepts in [Vaadin Framework](https://vaadin.com). It is meant to be From 3188129d0919df683865ebfaa35acc2954716dd9 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 5 Jul 2021 13:29:49 -0400 Subject: [PATCH 46/88] Update Jenkinsfile --- Jenkinsfile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index da4e428a1..8933c35e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,6 +56,25 @@ pipeline{ sh 'mvn package' } } + stage('Deploy'){ + agent any + steps{ + sh label: '', script: '''rm -rf mydockerfile +mkdir mydockerfile +cd mydockerfile +cp /var/lib/jenkins/workspace/package/target/addressbook.war . +touch dockerfile +cat <> dockerfile +From tomcat +ADD addressbook.war /usr/local/tomcat/webapps +EXPOSE 8080 +CMD ["catalina.sh", "run"] +EOT +sudo docker build -t myimage:$BUILD_NUMBER . +sudo docker run -itd -P myimage:$BUILD_NUMBER''' + } + } + } } From 71671616986f3830052d3bb8b593ea140cb85ec9 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 12 Jul 2021 23:29:17 -0400 Subject: [PATCH 47/88] Update Jenkinsfile --- Jenkinsfile | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8933c35e1..cb1dcf25e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -56,25 +56,7 @@ pipeline{ sh 'mvn package' } } - stage('Deploy'){ - agent any - steps{ - sh label: '', script: '''rm -rf mydockerfile -mkdir mydockerfile -cd mydockerfile -cp /var/lib/jenkins/workspace/package/target/addressbook.war . -touch dockerfile -cat <> dockerfile -From tomcat -ADD addressbook.war /usr/local/tomcat/webapps -EXPOSE 8080 -CMD ["catalina.sh", "run"] -EOT -sudo docker build -t myimage:$BUILD_NUMBER . -sudo docker run -itd -P myimage:$BUILD_NUMBER''' - } - } - + } } From d734b285359bdfcab2400570fa4f7b637a21c8e1 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Fri, 16 Jul 2021 11:22:07 -0400 Subject: [PATCH 48/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 18a1c6d92..1cf3c3f20 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -3,7 +3,7 @@ pipeline{ jdk 'myjava' maven 'mymaven1' } - agent none + agent any stages{ stage('Checkout'){ agent any From a3bd9c59b715cb26b873617275884bd98f29457d Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 1 Aug 2021 09:25:22 +0530 Subject: [PATCH 49/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 1cf3c3f20..525e9af96 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -pipeline{ +mypipeline{ tools{ jdk 'myjava' maven 'mymaven1' From 53d7b480543ae9ca004ca09be780bc1d6e52f195 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 7 Aug 2021 07:45:05 +0530 Subject: [PATCH 50/88] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index cb1dcf25e..15570804f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,7 +30,7 @@ pipeline{ stage('UnitTest'){ agent any steps{ - + sh 'mvn test' } post { From b818b58ebb539fe72d9466c75836299e94355ef0 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 9 Aug 2021 22:35:20 +0530 Subject: [PATCH 51/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 525e9af96..1943cc057 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,7 +1,7 @@ mypipeline{ tools{ jdk 'myjava' - maven 'mymaven1' + maven 'mymaven131' } agent any stages{ From 00009a976847a8f8d7e290e04f6551d3a6583566 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Wed, 29 Sep 2021 08:37:53 +0530 Subject: [PATCH 52/88] Update Jenkinsfile --- Jenkinsfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 15570804f..8e3be193b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,28 +7,28 @@ pipeline{ agent none stages{ stage('Checkout'){ - agent any + agent {label 'Slave1'} steps{ echo 'cloning..' git 'https://github.com/Sonal0409/DevOpsClassCodes.git' } } stage('Compile'){ - agent any + agent {label 'Slave1'} steps{ echo 'compiling..' sh 'mvn compile' } } stage('CodeReview'){ - agent any + agent {label 'Slave1'} steps{ echo 'codeReview' sh 'mvn pmd:pmd' } } stage('UnitTest'){ - agent any + agent {label 'Slave1'} steps{ sh 'mvn test' @@ -40,7 +40,7 @@ pipeline{ } } stage('MetricCheck'){ - agent any + agent {label 'Slave1'} steps{ sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' } @@ -51,7 +51,7 @@ pipeline{ } } stage('Package'){ - agent any + agent {label 'Slave1'} steps{ sh 'mvn package' } From a9c4bc6b9adfef50e314f43eacba3c47b2130459 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Fri, 1 Oct 2021 09:17:57 +0530 Subject: [PATCH 53/88] Update Jenkinsfile --- Jenkinsfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8e3be193b..fafd6c22d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,28 +7,28 @@ pipeline{ agent none stages{ stage('Checkout'){ - agent {label 'Slave1'} + agent any steps{ echo 'cloning..' git 'https://github.com/Sonal0409/DevOpsClassCodes.git' } } stage('Compile'){ - agent {label 'Slave1'} + agent any steps{ echo 'compiling..' sh 'mvn compile' } } stage('CodeReview'){ - agent {label 'Slave1'} + agent any steps{ echo 'codeReview' sh 'mvn pmd:pmd' } } stage('UnitTest'){ - agent {label 'Slave1'} + agent any steps{ sh 'mvn test' @@ -40,7 +40,7 @@ pipeline{ } } stage('MetricCheck'){ - agent {label 'Slave1'} + agent any steps{ sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' } @@ -51,7 +51,7 @@ pipeline{ } } stage('Package'){ - agent {label 'Slave1'} + agent any steps{ sh 'mvn package' } From 9d6174911dc3f23d67384c2b713c2c9cf172200e Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 4 Dec 2021 21:12:16 +0530 Subject: [PATCH 54/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 1943cc057..9742baf83 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -5,7 +5,7 @@ mypipeline{ } agent any stages{ - stage('Checkout'){ + stage('Checkout on git'){ agent any steps{ git 'https://github.com/devops-trainer/DevOpsClassCodes.git' From 6883c945a259dc576cf8854ffa26c07f87a685c6 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 5 Dec 2021 09:58:18 +0530 Subject: [PATCH 55/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 9742baf83..9ac31fc59 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -mypipeline{ +newpipeline{ tools{ jdk 'myjava' maven 'mymaven131' From 90f377edf56eb97db6008585a52a9aef6a8d05fc Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Thu, 9 Dec 2021 22:35:30 +0530 Subject: [PATCH 56/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 9ac31fc59..b4383ea25 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -newpipeline{ +pipeline{ tools{ jdk 'myjava' maven 'mymaven131' From fe6631bb022972a519d066d5946a0c8ac28163c0 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 11 Dec 2021 08:30:10 +0530 Subject: [PATCH 57/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index b4383ea25..0307b9859 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -pipeline{ +makingchnagespipeline{ tools{ jdk 'myjava' maven 'mymaven131' From da9996883a589727f3aeb478953a4bbbdefaad7c Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Wed, 15 Dec 2021 22:25:34 +0530 Subject: [PATCH 58/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 0307b9859..bc67faa24 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -makingchnagespipeline{ +newchnagesspipeline{ tools{ jdk 'myjava' maven 'mymaven131' From 687e7ce56f9c60f49a3c7b4a5942422d6fc755a9 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 19 Dec 2021 08:52:08 +0530 Subject: [PATCH 59/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index bc67faa24..ae9c3dcd3 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -newchnagesspipeline{ +changesspipeline{ tools{ jdk 'myjava' maven 'mymaven131' From 4b5d98f1925b4b1d2cc2d6fa4ed400ad0a828ad4 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 10 Jan 2022 10:22:51 +0530 Subject: [PATCH 60/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index ae9c3dcd3..837d7fd45 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -changesspipeline{ +changes123spipeline{ tools{ jdk 'myjava' maven 'mymaven131' From e7326bf038150313f70a4bc2e53893b65dabff67 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Wed, 12 Jan 2022 09:17:36 +0530 Subject: [PATCH 61/88] Update Jenkinsfile --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index fafd6c22d..321970598 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,8 +21,9 @@ pipeline{ } } stage('CodeReview'){ - agent any + agent {label 'linux_slave'} steps{ + git 'https://github.com/Sonal0409/DevOpsClassCodes.git' echo 'codeReview' sh 'mvn pmd:pmd' } @@ -51,8 +52,9 @@ pipeline{ } } stage('Package'){ - agent any + agent {label 'linux_slave'} steps{ + git 'https://github.com/Sonal0409/DevOpsClassCodes.git' sh 'mvn package' } } From dad454dd943e5bb7b4b585e235460514791178ba Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Wed, 12 Jan 2022 09:21:39 +0530 Subject: [PATCH 62/88] Update Jenkinsfile --- Jenkinsfile | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 321970598..699ff1e53 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,32 +4,32 @@ pipeline{ jdk 'myjava' maven 'mymaven' } - agent none + agent {label 'linux_slave'} stages{ stage('Checkout'){ - agent any + steps{ echo 'cloning..' git 'https://github.com/Sonal0409/DevOpsClassCodes.git' } } stage('Compile'){ - agent any + steps{ echo 'compiling..' sh 'mvn compile' } } stage('CodeReview'){ - agent {label 'linux_slave'} + steps{ - git 'https://github.com/Sonal0409/DevOpsClassCodes.git' + echo 'codeReview' sh 'mvn pmd:pmd' } } stage('UnitTest'){ - agent any + steps{ sh 'mvn test' @@ -41,7 +41,7 @@ pipeline{ } } stage('MetricCheck'){ - agent any + steps{ sh 'mvn cobertura:cobertura -Dcobertura.report.format=xml' } @@ -52,9 +52,9 @@ pipeline{ } } stage('Package'){ - agent {label 'linux_slave'} + steps{ - git 'https://github.com/Sonal0409/DevOpsClassCodes.git' + sh 'mvn package' } } From 6f8607bf542cd72ebee0472ffe4f0f9980bec0d6 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 30 Jan 2022 09:58:17 +0530 Subject: [PATCH 63/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 837d7fd45..9a50e19cb 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -changes123spipeline{ +changesdonepipeline{ tools{ jdk 'myjava' maven 'mymaven131' From e0a962a31c7165f5efcfa32b99994d99e39c5308 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 8 Feb 2022 21:28:04 +0530 Subject: [PATCH 64/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 9a50e19cb..b261e448e 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -changesdonepipeline{ +new chnage inpipeline{ tools{ jdk 'myjava' maven 'mymaven131' From 8585de3eead72d957f4d15bc31789f2fcfec8e1b Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 13 Feb 2022 22:12:40 +0530 Subject: [PATCH 65/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index b261e448e..2fcb40ea7 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -new chnage inpipeline{ +added new chnage for jenkins inpipeline{ tools{ jdk 'myjava' maven 'mymaven131' From bbcba320258d07de420f0dba350a3bd60f5035b9 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 14 Feb 2022 13:06:21 +0530 Subject: [PATCH 66/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 2fcb40ea7..3f08c73da 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -added new chnage for jenkins inpipeline{ +new chnage for jenkins inpipeline{ tools{ jdk 'myjava' maven 'mymaven131' From 2d2d8b1da6f4f21dca39d1d7ce9fe3c8dc1bd75c Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 14 Feb 2022 13:13:46 +0530 Subject: [PATCH 67/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 3f08c73da..c0944a379 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -new chnage for jenkins inpipeline{ +new chnages inpipeline{ tools{ jdk 'myjava' maven 'mymaven131' From ae0c58318a22af8324b7000c0e183befcea03017 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 14 Feb 2022 17:14:36 +0530 Subject: [PATCH 68/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index c0944a379..8e1c4914f 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -new chnages inpipeline{ +making a chnage inpipeline{ tools{ jdk 'myjava' maven 'mymaven131' From a941286d296096ba3d1a818bb59c2ffc59c76c37 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 14 Feb 2022 17:43:37 +0530 Subject: [PATCH 69/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 8e1c4914f..80c7d80b2 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -making a chnage inpipeline{ +commit inpipeline{ tools{ jdk 'myjava' maven 'mymaven131' From c16bfa4e58e11ac4aea2497cb78b0cb14b621afd Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Wed, 16 Feb 2022 14:39:50 +0530 Subject: [PATCH 70/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 80c7d80b2..be7178e59 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -commit inpipeline{ +new commit pipeline{ tools{ jdk 'myjava' maven 'mymaven131' From a280e307e94e2a402f78c83ceabccbdf9ddfed08 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 20 Feb 2022 18:51:46 +0530 Subject: [PATCH 71/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index be7178e59..1bc48ba2b 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -new commit pipeline{ +new commit into pipeline{ tools{ jdk 'myjava' maven 'mymaven131' From 1e57ff0c25e1e900d0ce8319b36799324e9e1faf Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 15 Mar 2022 21:27:26 +0530 Subject: [PATCH 72/88] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 699ff1e53..8597db553 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline{ jdk 'myjava' maven 'mymaven' } - agent {label 'linux_slave'} + agent any stages{ stage('Checkout'){ From 46ba0dadad301771f439549158335805d14ecb52 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 26 Mar 2022 09:46:20 +0530 Subject: [PATCH 73/88] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8597db553..1b83abfda 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -31,7 +31,7 @@ pipeline{ stage('UnitTest'){ steps{ - + echo 'Testing' sh 'mvn test' } post { From 009511e4a2acddea4af99f6fcb80827398d62c57 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 5 Apr 2022 11:33:45 +0530 Subject: [PATCH 74/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 1bc48ba2b..a71f1a71e 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -new commit into pipeline{ +new new new commit into pipeline{ tools{ jdk 'myjava' maven 'mymaven131' From 1c743d256c7c2b9a18d70af548ef658930172589 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Mon, 9 May 2022 11:41:44 +0530 Subject: [PATCH 75/88] Update Jenkinsfile --- Jenkinsfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1b83abfda..5ebf9def9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -45,11 +45,7 @@ pipeline{ steps{ sh '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'){ From 9a83069f3ad9abda83cd48d6f8e5e99d07fb992d Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Wed, 11 May 2022 14:36:53 +0530 Subject: [PATCH 76/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index a71f1a71e..47f07807d 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,4 +1,4 @@ -new new new commit into pipeline{ +new commit pipeline{ tools{ jdk 'myjava' maven 'mymaven131' From 0e150dc129931354013a3404760c3afe11e7bc5d Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 29 May 2022 10:46:20 +0530 Subject: [PATCH 77/88] Update JenkinsFile1 --- JenkinsFile1 | 1 + 1 file changed, 1 insertion(+) diff --git a/JenkinsFile1 b/JenkinsFile1 index 47f07807d..5f9914f50 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -3,6 +3,7 @@ new commit pipeline{ jdk 'myjava' maven 'mymaven131' } + //commit on github agent any stages{ stage('Checkout on git'){ From 27eb6dae9a09cad8896996993aa3143c7b25b7dc Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 31 May 2022 09:11:09 +0530 Subject: [PATCH 78/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index 5f9914f50..37433b3f6 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -1,5 +1,5 @@ new commit pipeline{ - tools{ + new chnage for commit tools{ jdk 'myjava' maven 'mymaven131' } From a69fa9cba7ace94a20e09e511fb0abde332722fa Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Wed, 1 Jun 2022 08:33:54 +0530 Subject: [PATCH 79/88] Update JenkinsFile1 --- JenkinsFile1 | 1 + 1 file changed, 1 insertion(+) diff --git a/JenkinsFile1 b/JenkinsFile1 index 37433b3f6..a2addb415 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -5,6 +5,7 @@ new commit pipeline{ } //commit on github agent any + new ctsage added stages{ stage('Checkout on git'){ agent any From 5ed68be66fb71fafe54e498a28b3d1aae5ee3abf Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 7 Jun 2022 09:08:07 +0530 Subject: [PATCH 80/88] Update JenkinsFile1 --- JenkinsFile1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JenkinsFile1 b/JenkinsFile1 index a2addb415..2733d6494 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -3,7 +3,7 @@ new commit pipeline{ jdk 'myjava' maven 'mymaven131' } - //commit on github + //commit on github-- new one agent any new ctsage added stages{ From ab4ab5c2b871c54f7b206e78804198b6fb821e05 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Tue, 19 Jul 2022 22:21:02 +0530 Subject: [PATCH 81/88] Update JenkinsFile1 --- JenkinsFile1 | 1 + 1 file changed, 1 insertion(+) diff --git a/JenkinsFile1 b/JenkinsFile1 index 2733d6494..dc31fb558 100644 --- a/JenkinsFile1 +++ b/JenkinsFile1 @@ -3,6 +3,7 @@ new commit pipeline{ jdk 'myjava' maven 'mymaven131' } + //more commits on the file //commit on github-- new one agent any new ctsage added From 49a87de67effb99249158577aa3bc6c26cfc95f9 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 17 Dec 2022 06:54:03 +0530 Subject: [PATCH 82/88] Update pom.xml --- pom.xml | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) diff --git a/pom.xml b/pom.xml index f2b7c1429..5a0b5bb10 100644 --- a/pom.xml +++ b/pom.xml @@ -301,11 +301,27 @@ maven-project-info-reports-plugin 2.7 - - org.jacoco - jacoco-maven-plugin - 0.7.2.201409121644 - + + + org.jacoco + jacoco-maven-plugin + 0.8.5 + + + + prepare-agent + + + + + report + test + + report + + + + org.apache.maven.plugins maven-checkstyle-plugin From 381eeebb11d3d791a96a8085834480dec98f01f9 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sat, 17 Dec 2022 06:56:29 +0530 Subject: [PATCH 83/88] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 5a0b5bb10..ca16cfe0e 100644 --- a/pom.xml +++ b/pom.xml @@ -301,7 +301,7 @@ maven-project-info-reports-plugin 2.7 - + org.jacoco jacoco-maven-plugin From 6ec1f2c4db970b18b2b29ca3d02e852f9a54e710 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 18 Dec 2022 07:22:36 +0530 Subject: [PATCH 84/88] Update pom.xml --- pom.xml | 46 +++++++++++++++++++++++++--------------------- 1 file changed, 25 insertions(+), 21 deletions(-) diff --git a/pom.xml b/pom.xml index ca16cfe0e..7db410d0d 100644 --- a/pom.xml +++ b/pom.xml @@ -13,7 +13,14 @@ false 8.0.0.alpha2 ${vaadin.version} - + + + jacoco + reuseReports + ${project.basedir}/../target/jacoco.exec + java + + @@ -302,26 +309,23 @@ 2.7 - - org.jacoco - jacoco-maven-plugin - 0.8.5 - - - - prepare-agent - - - - - report - test - - report - - - - + + org.jacoco + jacoco-maven-plugin + 0.7.9 + + ${sonar.jacoco.reportPath} + true + + + + agent + + prepare-agent + + + + org.apache.maven.plugins maven-checkstyle-plugin From c4034170415198727be5e328c7c052a7e9662ffa Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 18 Dec 2022 07:24:39 +0530 Subject: [PATCH 85/88] Update pom.xml --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 7db410d0d..25b043229 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ 8.0.0.alpha2 ${vaadin.version} - + jacoco reuseReports ${project.basedir}/../target/jacoco.exec From 3a2ee18b21dc087a6b4b7dbc8ab2d248b236f2d6 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 18 Dec 2022 07:25:58 +0530 Subject: [PATCH 86/88] Update pom.xml --- pom.xml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pom.xml b/pom.xml index 25b043229..d62e8bfbb 100644 --- a/pom.xml +++ b/pom.xml @@ -13,6 +13,8 @@ false 8.0.0.alpha2 ${vaadin.version} + + jacoco From 3a451f3d5f019396e50b047ade0ad07193566afe Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 18 Dec 2022 07:26:41 +0530 Subject: [PATCH 87/88] Update pom.xml --- pom.xml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index d62e8bfbb..01657710d 100644 --- a/pom.xml +++ b/pom.xml @@ -13,9 +13,7 @@ false 8.0.0.alpha2 ${vaadin.version} - - - + jacoco reuseReports From 481f175c3b1d1f2ccbdcf97dd599c33a9e9d0602 Mon Sep 17 00:00:00 2001 From: Sonal Mittal <62133890+Sonal0409@users.noreply.github.com> Date: Sun, 18 Dec 2022 07:40:55 +0530 Subject: [PATCH 88/88] Update pom.xml --- pom.xml | 55 +++++++++++++++++++++++++++++++------------------------ 1 file changed, 31 insertions(+), 24 deletions(-) diff --git a/pom.xml b/pom.xml index 01657710d..35cf03091 100644 --- a/pom.xml +++ b/pom.xml @@ -13,12 +13,12 @@ false 8.0.0.alpha2 ${vaadin.version} - - - jacoco - reuseReports - ${project.basedir}/../target/jacoco.exec - java + + 0.8.6 + jacoco + reuseReports + ${project.basedir}/../target/jacoco.exec + java @@ -160,7 +160,11 @@ xml-security-impl 1.0 - + + org.jacoco + jacoco-maven-plugin + 0.8.6 + @@ -309,23 +313,26 @@ 2.7 - - org.jacoco - jacoco-maven-plugin - 0.7.9 - - ${sonar.jacoco.reportPath} - true - - - - agent - - prepare-agent - - - - + + org.jacoco + jacoco-maven-plugin + ${jacoco.version} + + + jacoco-initialize + + prepare-agent + + + + jacoco-site + package + + report + + + + org.apache.maven.plugins maven-checkstyle-plugin