From 906151f05c40afed86c8260074295c87115e7f8e Mon Sep 17 00:00:00 2001 From: edureka-devops <38784160+edureka-devops@users.noreply.github.com> Date: Thu, 11 Oct 2018 12:25:17 +0530 Subject: [PATCH 1/7] Update Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 31f6039..e1a05db 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline { stage('Clone') { steps { echo "checking out the repo" - git 'https://github.com/vathsalahn/jenkins-demo.git' + git 'https://github.com/edureka-devops/jenkins-demo.git' } } @@ -27,7 +27,7 @@ pipeline { steps { script { echo "deployment" - sh 'cp MavenProject/multi3/target/*.war /Applications/apache-tomcat-7.0.88/webapps/' + sh 'cp MavenProject/multi3/target/*.war /var/lib/jenkins/tomcat8/webapps/' } } } @@ -48,14 +48,14 @@ pipeline { parallel ( "JavaNcss Report": { node('window'){ - git 'https://github.com/vathsalahn/jenkins-demo.git' + git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn test javancss:report ; pwd" } }, "FindBugs Report" : { node('window'){ sh "mkdir javancss1 ; cd javancss1 ;pwd" - git 'https://github.com/vathsalahn/jenkins-demo.git' + git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn findbugs:findbugs ; pwd" deleteDir() } From 8aa4cd8cbd0e1c38beadabc606bd2faacc12bcd2 Mon Sep 17 00:00:00 2001 From: edureka-devops <38784160+edureka-devops@users.noreply.github.com> Date: Thu, 11 Oct 2018 12:34:46 +0530 Subject: [PATCH 2/7] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e1a05db..8e60357 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -27,7 +27,7 @@ pipeline { steps { script { echo "deployment" - sh 'cp MavenProject/multi3/target/*.war /var/lib/jenkins/tomcat8/webapps/' + sh 'cp MavenProject/multi3/target/*.war /var/lib/tomcat8/webapps/' } } } From c48d53923f19f5ff1349aaf51e18218c21b4c52c Mon Sep 17 00:00:00 2001 From: edureka-devops <38784160+edureka-devops@users.noreply.github.com> Date: Thu, 11 Oct 2018 12:37:18 +0530 Subject: [PATCH 3/7] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8e60357..a06d8e8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,7 +47,7 @@ pipeline { steps{ parallel ( "JavaNcss Report": { - node('window'){ + node{ git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn test javancss:report ; pwd" } From 1c604a3fa5988655ff008c7b32fda3ee5105df38 Mon Sep 17 00:00:00 2001 From: edureka-devops <38784160+edureka-devops@users.noreply.github.com> Date: Thu, 11 Oct 2018 12:44:27 +0530 Subject: [PATCH 4/7] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a06d8e8..d838ff2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,13 +47,13 @@ pipeline { steps{ parallel ( "JavaNcss Report": { - node{ + node('jenkins'){ git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn test javancss:report ; pwd" } }, "FindBugs Report" : { - node('window'){ + node('jenkins'){ sh "mkdir javancss1 ; cd javancss1 ;pwd" git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn findbugs:findbugs ; pwd" From e50caa64dfd76b6591791495192f97b5a73dde82 Mon Sep 17 00:00:00 2001 From: edureka-devops <38784160+edureka-devops@users.noreply.github.com> Date: Thu, 11 Oct 2018 12:45:29 +0530 Subject: [PATCH 5/7] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d838ff2..b9ea674 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,13 +47,13 @@ pipeline { steps{ parallel ( "JavaNcss Report": { - node('jenkins'){ + node('Jenkins'){ git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn test javancss:report ; pwd" } }, "FindBugs Report" : { - node('jenkins'){ + node('Jenkins'){ sh "mkdir javancss1 ; cd javancss1 ;pwd" git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn findbugs:findbugs ; pwd" From d073fbcf3a15e15396bf66538df5d72777c0c59f Mon Sep 17 00:00:00 2001 From: edureka-devops <38784160+edureka-devops@users.noreply.github.com> Date: Thu, 11 Oct 2018 13:05:10 +0530 Subject: [PATCH 6/7] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b9ea674..ff5fde6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,13 +47,13 @@ pipeline { steps{ parallel ( "JavaNcss Report": { - node('Jenkins'){ + node('edureka-VirtualBox'){ git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn test javancss:report ; pwd" } }, "FindBugs Report" : { - node('Jenkins'){ + node('edureka-VirtualBox'){ sh "mkdir javancss1 ; cd javancss1 ;pwd" git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn findbugs:findbugs ; pwd" From c079631d211754b1edb0c3d8d7e2231963a22d84 Mon Sep 17 00:00:00 2001 From: edureka-devops <38784160+edureka-devops@users.noreply.github.com> Date: Thu, 11 Oct 2018 13:16:40 +0530 Subject: [PATCH 7/7] Update Jenkinsfile --- Jenkinsfile | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ff5fde6..02a21e1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -47,18 +47,15 @@ pipeline { steps{ parallel ( "JavaNcss Report": { - node('edureka-VirtualBox'){ git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn test javancss:report ; pwd" - } + }, "FindBugs Report" : { - node('edureka-VirtualBox'){ sh "mkdir javancss1 ; cd javancss1 ;pwd" git 'https://github.com/edureka-devops/jenkins-demo.git' sh "cd javancss-master ; mvn findbugs:findbugs ; pwd" deleteDir() - } } )