From 504a6454592f43c918dd4c87115fb3602f0369a0 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Thu, 21 Feb 2019 14:30:18 +0530 Subject: [PATCH 01/80] Create Jenkinsfile --- Jenkinsfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..ac7561d5 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,7 @@ +node { + stage('scm checkout') { +git 'https://github.com/razzpothula/maven-simple' + stage('compile-package'){ + sh 'mvn package' + } +} From 02f33430f57c2a5d8bd721e89a96637b697c8294 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Thu, 21 Feb 2019 14:47:06 +0530 Subject: [PATCH 02/80] Update Jenkinsfile --- Jenkinsfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ac7561d5..9a78d48c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,9 @@ node { - stage('scm checkout') { -git 'https://github.com/razzpothula/maven-simple' + stage('scm checkout'){ + git 'https://github.com/razzpothula/maven-simple' stage('compile-package'){ - sh 'mvn package' + //Get maven home path + def mvnhome = tool name: 'mvn', type: 'maven' + sh "${mvnhome}/bin package" } } From b3b27be97d2481a3c742135e053a294eb8a2ee23 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Thu, 21 Feb 2019 14:57:26 +0530 Subject: [PATCH 03/80] Update Jenkinsfile --- Jenkinsfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 9a78d48c..fa905678 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,9 @@ node { - stage('scm checkout'){ + stage('Scm Checkout'){ git 'https://github.com/razzpothula/maven-simple' - stage('compile-package'){ + stage('Compile-Package'){ //Get maven home path def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnhome}/bin package" + sh "${mvnHome}/bin/mvn package" } } From 9dede7f93383d0c2ae9eb7162b027d75c5a21301 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Thu, 21 Feb 2019 15:00:25 +0530 Subject: [PATCH 04/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fa905678..0f6469bf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,4 @@ -node { + node{ stage('Scm Checkout'){ git 'https://github.com/razzpothula/maven-simple' stage('Compile-Package'){ From a37de0a0feac815e3c53b61a56560f03c31d991b Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Thu, 21 Feb 2019 15:03:09 +0530 Subject: [PATCH 05/80] Delete Jenkinsfile --- Jenkinsfile | 9 --------- 1 file changed, 9 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 0f6469bf..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,9 +0,0 @@ - node{ - stage('Scm Checkout'){ - git 'https://github.com/razzpothula/maven-simple' - stage('Compile-Package'){ - //Get maven home path - def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnHome}/bin/mvn package" - } -} From a46a96fdc17079c04bc449343e46eb1f2d0097fb Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 20:21:26 +0530 Subject: [PATCH 06/80] scm checkout --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..a082f185 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,5 @@ +node{ +stage('SCM Checkout'){ +git url:'https://github.com/razzpothula/maven-simple.git' +} + } From 4da23d97664a1b24d5af14c445fa996209f59db3 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 21:49:42 +0530 Subject: [PATCH 07/80] compile code --- Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index a082f185..7a4db734 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,3 +3,7 @@ stage('SCM Checkout'){ git url:'https://github.com/razzpothula/maven-simple.git' } } +stage('Compile'){ + def mvn/Home = tool name: 'mvn', type: 'maven' + sh"${mvnHome}/bin/mvn compile" +} From be17ce0e3af07ab01560959c99551617183e4cd8 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 21:55:47 +0530 Subject: [PATCH 08/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 7a4db734..170b366d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,5 +5,5 @@ git url:'https://github.com/razzpothula/maven-simple.git' } stage('Compile'){ def mvn/Home = tool name: 'mvn', type: 'maven' - sh"${mvnHome}/bin/mvn compile" + sh "${mvnHome}/bin/mvn compile" } From b50d086148253837ccf64553c0346de00035c97b Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 22:05:56 +0530 Subject: [PATCH 09/80] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 170b366d..af242065 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,6 +4,6 @@ git url:'https://github.com/razzpothula/maven-simple.git' } } stage('Compile'){ - def mvn/Home = tool name: 'mvn', type: 'maven' - sh "${mvnHome}/bin/mvn compile" + def mvnhome = tool name: 'mvn', type: 'maven' + sh "${mvnhome}/bin/mvn compile" } From d9661fa6059a35e8f820ac54d896c2db4b68a7c7 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 22:16:01 +0530 Subject: [PATCH 10/80] Update Jenkinsfile --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index af242065..2ed9411a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,9 +1,13 @@ +pipeline{ + node{ stage('SCM Checkout'){ git url:'https://github.com/razzpothula/maven-simple.git' } - } + stage('Compile'){ def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" } +} +} From bdd8fd2c20f979bdd1d6fa1b1af5f35195622f3f Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 22:20:54 +0530 Subject: [PATCH 11/80] Update Jenkinsfile --- Jenkinsfile | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2ed9411a..844ac4e9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,13 +1,11 @@ -pipeline{ - -node{ -stage('SCM Checkout'){ -git url:'https://github.com/razzpothula/maven-simple.git' -} - -stage('Compile'){ - def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnhome}/bin/mvn compile" -} -} +pipeline { + node { + stage('SCM Checkout') { + git url:'https://github.com/razzpothula/maven-simple.git' + } + stage('Compile') { + def mvnhome = tool name: 'mvn', type: 'maven' + sh "${mvnhome}/bin/mvn compile" + } + } } From 6aaf94b7c981be63e9dae418da8e2aa0a6455010 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 22:25:43 +0530 Subject: [PATCH 12/80] Update Jenkinsfile --- Jenkinsfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 844ac4e9..d037c771 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,4 +1,3 @@ -pipeline { node { stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' @@ -8,4 +7,3 @@ pipeline { sh "${mvnhome}/bin/mvn compile" } } -} From df3ca91f6633851819e87328bea00e375bffb7f7 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 22:27:00 +0530 Subject: [PATCH 13/80] Update Jenkinsfile --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index d037c771..63d3670d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,3 +1,4 @@ +pipeline { node { stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' @@ -7,3 +8,4 @@ sh "${mvnhome}/bin/mvn compile" } } +} From 05f1f8ed052decf4cab461af0464a79434e4fd09 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 22:29:28 +0530 Subject: [PATCH 14/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 63d3670d..afe7dd85 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - node { + agent { stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } From 4c83b3cecfd2d2dc3075f22a02eff3f59db50ba6 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 22:45:29 +0530 Subject: [PATCH 15/80] Update Jenkinsfile --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index afe7dd85..a3f06ce9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,9 +3,11 @@ pipeline { stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } + } +} stage('Compile') { def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" } - } -} + + From 0697206fdf757820b24633d579450f03c139f52a Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 22:47:14 +0530 Subject: [PATCH 16/80] Update Jenkinsfile --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a3f06ce9..d865560b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,11 +3,10 @@ pipeline { stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } - } -} stage('Compile') { def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" } - + } +} From 22b48b0ed17724062fd063d9d546f83011653566 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 23:56:51 +0530 Subject: [PATCH 17/80] change --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index d865560b..22d08c90 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ -pipeline { - agent { +pipeline{ + node{ stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } @@ -9,4 +9,5 @@ pipeline { } } } +} From 957673f65ab300af02b2fca4756e19157b17d001 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 25 Feb 2019 23:58:55 +0530 Subject: [PATCH 18/80] Update Jenkinsfile --- Jenkinsfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 22d08c90..e79ab047 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ -pipeline{ - node{ +pipeline { + agent{ stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } @@ -9,5 +9,3 @@ pipeline{ } } } -} - From c29bc8c1b490380e9d8e34d2d4a68d909e507b2f Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 26 Feb 2019 00:01:36 +0530 Subject: [PATCH 19/80] Update Jenkinsfile --- Jenkinsfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index e79ab047..025020f1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,9 +3,11 @@ pipeline { stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } - stage('Compile') { + } +} +agent{ + stage('Compile') { def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" } } -} From addf999a1740f7823b2671b6f8369b574089172f Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 26 Feb 2019 00:03:33 +0530 Subject: [PATCH 20/80] scm checkout --- Jenkinsfile | 6 ------ 1 file changed, 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 025020f1..60b225bf 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -5,9 +5,3 @@ pipeline { } } } -agent{ - stage('Compile') { - def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnhome}/bin/mvn compile" - } - } From 499fc244b78abdd56c52245d9d0362438ecc6366 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 26 Feb 2019 00:05:51 +0530 Subject: [PATCH 21/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 60b225bf..52855527 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline { - agent{ + node{ stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } From 529b345deeda45aff0fdcd254a260fc393d6bca4 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 26 Feb 2019 00:10:15 +0530 Subject: [PATCH 22/80] Update Jenkinsfile --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 52855527..16fa7038 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,6 @@ -pipeline { +pipeline node{ stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } } -} From 5b84b5c035064f83e20bde18ea1584e4dc09d449 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 26 Feb 2019 00:19:18 +0530 Subject: [PATCH 23/80] Update Jenkinsfile --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 16fa7038..0a019ae3 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,4 +3,9 @@ pipeline stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } + stage('Compile'){ + \\Get maven home path + def mvnhome = tool name: 'mvn', type: 'maven' + sh "${mvnhome}/bin/mvn compile" + } } From 601b128900e99f468cb376b5ee4c781fd74d1ab2 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 26 Feb 2019 00:22:01 +0530 Subject: [PATCH 24/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0a019ae3..077cb2ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,7 +4,7 @@ pipeline git url:'https://github.com/razzpothula/maven-simple.git' } stage('Compile'){ - \\Get maven home path + //Get maven home path def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" } From 38bcc486df2b398e0ad17c9d18785f2d4b7146e6 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 11:01:02 +0530 Subject: [PATCH 25/80] sonar --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 077cb2ad..fc64a9fe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,4 +8,10 @@ pipeline def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" } + stage('SonarQube Analysis'){ + def mvnhome = tool name: 'mvn', type: 'maven' + withSonarQubeEnv('sonar'){ + sh "${mvnhome}/bin/mvn Sonar:sonar" + } + } } From 2f1b8da9781db1570155a871d983eed3afe43123 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 11:15:50 +0530 Subject: [PATCH 26/80] sonar name changes --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fc64a9fe..8be66c1a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ pipeline } stage('SonarQube Analysis'){ def mvnhome = tool name: 'mvn', type: 'maven' - withSonarQubeEnv('sonar'){ + withSonarQubeEnv('sonar-3'){ sh "${mvnhome}/bin/mvn Sonar:sonar" } } From 8804bc55baaec04fc07f5135865d66b09c34696f Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 11:22:33 +0530 Subject: [PATCH 27/80] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8be66c1a..2ce1050a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,8 +10,8 @@ pipeline } stage('SonarQube Analysis'){ def mvnhome = tool name: 'mvn', type: 'maven' - withSonarQubeEnv('sonar-3'){ - sh "${mvnhome}/bin/mvn Sonar:sonar" + withSonarQubeEnv('sonar'){ + sh "${mvnhome}/bin/mvn sonar:sonar" } } } From cca5e8aa5e7b24f96da562a0e737d09c9b7aa377 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 11:29:42 +0530 Subject: [PATCH 28/80] package --- Jenkinsfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2ce1050a..befcc9d9 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,4 +14,8 @@ pipeline sh "${mvnhome}/bin/mvn sonar:sonar" } } - } + stage('Package'){ + def mvnhome = tool name: 'mvn', type: 'maven' + sh "${mvnhome}/bin/mvn package" + } + } From d39066dac84040fc0fb0b9a231bb2d030c61346e Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 15:42:31 +0530 Subject: [PATCH 29/80] email notification --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index befcc9d9..b6f00a5e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,4 +18,10 @@ pipeline def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn package" } + stage('E-Mail Notification'){ + mail bcc: '', body: '''this is jenkins pipeline code for email notification + thanks + rajesh''', cc: '', from: '', replyTo: '', subject: 'jenkinsfile ', to: 'rajeshpothula.bj@gmail.com' } + + } From c91397d82122c84464e52b266b7b640053b2a076 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 15:48:16 +0530 Subject: [PATCH 30/80] Update Jenkinsfile --- Jenkinsfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b6f00a5e..aa6889fd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,9 +19,10 @@ pipeline sh "${mvnhome}/bin/mvn package" } stage('E-Mail Notification'){ - mail bcc: '', body: '''this is jenkins pipeline code for email notification - thanks - rajesh''', cc: '', from: '', replyTo: '', subject: 'jenkinsfile ', to: 'rajeshpothula.bj@gmail.com' + mail bcc: '', body: '''Email notification for job +thanks +rajesh +''', cc: '', from: '', replyTo: '', subject: 'Jenkinsfile', to: 'rajeshpothula.bj@gmail.com' } } From 22eacbd7396fa938c49b8a3dc09657e3f4fe29dc Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 15:51:48 +0530 Subject: [PATCH 31/80] Update Jenkinsfile --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index aa6889fd..a798020a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -20,9 +20,8 @@ pipeline } stage('E-Mail Notification'){ mail bcc: '', body: '''Email notification for job -thanks -rajesh -''', cc: '', from: '', replyTo: '', subject: 'Jenkinsfile', to: 'rajeshpothula.bj@gmail.com' + thanks + rajesh + ''', cc: '', from: '', replyTo: '', subject: 'Jenkinsfile', to: 'rajeshpothula.bj@gmail.com' } - } From a3ff8d98c19b9b640938973306f2c35c651761ce Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 15:54:34 +0530 Subject: [PATCH 32/80] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a798020a..881a22cd 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,5 +23,5 @@ pipeline thanks rajesh ''', cc: '', from: '', replyTo: '', subject: 'Jenkinsfile', to: 'rajeshpothula.bj@gmail.com' - } - } + } + } From d5f39dd98e71e86375ae8a886c9166e46c47ba27 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 17:17:30 +0530 Subject: [PATCH 33/80] deply --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 881a22cd..3ec8824d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -18,6 +18,11 @@ pipeline def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn package" } + stage('Tomcat-Deploy'){ + shagent(['tomcat-deploy']) { + sh 'scp -o StrictHostKeyChecking=no /var/lib/jenkins/workspace/jenkinsfile_project/target/*.jar ubuntu@13.233.2.55:/opt/tomcat/webapps/' + } + } stage('E-Mail Notification'){ mail bcc: '', body: '''Email notification for job thanks From b06df854a09e02cdd6081604412d6549548a0da7 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 17:21:16 +0530 Subject: [PATCH 34/80] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 3ec8824d..aaae276b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,3 +30,4 @@ pipeline ''', cc: '', from: '', replyTo: '', subject: 'Jenkinsfile', to: 'rajeshpothula.bj@gmail.com' } } +} From 6bb37f48a1fa58e6b69d2ba024567435cf5d313e Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 17:31:02 +0530 Subject: [PATCH 35/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index aaae276b..38352721 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,7 +19,7 @@ pipeline sh "${mvnhome}/bin/mvn package" } stage('Tomcat-Deploy'){ - shagent(['tomcat-deploy']) { + sshagent (credentials: ['deploy-dev']) { sh 'scp -o StrictHostKeyChecking=no /var/lib/jenkins/workspace/jenkinsfile_project/target/*.jar ubuntu@13.233.2.55:/opt/tomcat/webapps/' } } From 3a6f1606e0d1161f8ae0961c98fb3dc36a169b3a Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Wed, 27 Feb 2019 19:37:59 +0530 Subject: [PATCH 36/80] Update Jenkinsfile --- Jenkinsfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 38352721..adfd5ef4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,6 +14,14 @@ pipeline sh "${mvnhome}/bin/mvn sonar:sonar" } } + stage("Quality Gate"){ + timeout(time: 1, unit: 'HOURS') { // Just in case something goes wrong, pipeline will be killed after a timeout + def qg = waitForQualityGate() // Reuse taskId previously collected by withSonarQubeEnv + if (qg.status != 'OK') { + error "Pipeline aborted due to quality gate failure: ${qg.status}" + } + } + } stage('Package'){ def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn package" From 4109ad40c0fb2f3da7d7884d7695db59c369dccc Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Thu, 28 Feb 2019 09:44:04 +0530 Subject: [PATCH 37/80] Update Jenkinsfile --- Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index adfd5ef4..1a49ac3c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -15,8 +15,10 @@ pipeline } } stage("Quality Gate"){ - timeout(time: 1, unit: 'HOURS') { // Just in case something goes wrong, pipeline will be killed after a timeout - def qg = waitForQualityGate() // Reuse taskId previously collected by withSonarQubeEnv + timeout(time: 1, unit: 'HOURS') { + // Just in case something goes wrong, pipeline will be killed after a timeout + def qg = waitForQualityGate() + // Reuse taskId previously collected by withSonarQubeEnv if (qg.status != 'OK') { error "Pipeline aborted due to quality gate failure: ${qg.status}" } @@ -27,8 +29,8 @@ pipeline sh "${mvnhome}/bin/mvn package" } stage('Tomcat-Deploy'){ - sshagent (credentials: ['deploy-dev']) { - sh 'scp -o StrictHostKeyChecking=no /var/lib/jenkins/workspace/jenkinsfile_project/target/*.jar ubuntu@13.233.2.55:/opt/tomcat/webapps/' + sshagent(['tomcat-deploy']) { + sh 'scp -o StrictHostKeyChecking=no /var/lib/jenkins/workspace/jenkinsfile_project/target/*.jar ubuntu@13.233.229.217:/opt/tomcat/webapps/' } } stage('E-Mail Notification'){ From 4e8eda683fcf868f01eed3a4d756941a6bdeb1b2 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Thu, 28 Feb 2019 09:46:09 +0530 Subject: [PATCH 38/80] Update Jenkinsfile --- Jenkinsfile | 1 - 1 file changed, 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1a49ac3c..b09b6c06 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -40,4 +40,3 @@ pipeline ''', cc: '', from: '', replyTo: '', subject: 'Jenkinsfile', to: 'rajeshpothula.bj@gmail.com' } } -} From 2d0a7bec8d1190346ed62bfb9e1306483753891b Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Thu, 28 Feb 2019 09:51:13 +0530 Subject: [PATCH 39/80] some changes --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index b09b6c06..e0748cea 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -30,8 +30,8 @@ pipeline } stage('Tomcat-Deploy'){ sshagent(['tomcat-deploy']) { - sh 'scp -o StrictHostKeyChecking=no /var/lib/jenkins/workspace/jenkinsfile_project/target/*.jar ubuntu@13.233.229.217:/opt/tomcat/webapps/' - } + sh 'scp -o StrictHostKeyChecking=no /var/lib/jenkins/workspace/jenkinsfile_project/target/*.jar ubuntu@13.233.229.217:/opt/tomcat/webapps/' + } } stage('E-Mail Notification'){ mail bcc: '', body: '''Email notification for job From 8f8bce3e74cbf91b4af44afee4649333baf8c96a Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Thu, 28 Feb 2019 09:57:07 +0530 Subject: [PATCH 40/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index e0748cea..4ce24c34 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -32,7 +32,7 @@ pipeline sshagent(['tomcat-deploy']) { sh 'scp -o StrictHostKeyChecking=no /var/lib/jenkins/workspace/jenkinsfile_project/target/*.jar ubuntu@13.233.229.217:/opt/tomcat/webapps/' } - } + } stage('E-Mail Notification'){ mail bcc: '', body: '''Email notification for job thanks From dca33b76a7c9784dfa71772c71335004976fe5ec Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 3 Mar 2019 21:43:03 +0530 Subject: [PATCH 41/80] Update Jenkinsfile --- Jenkinsfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 4ce24c34..00c3a8af 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,6 +28,9 @@ pipeline def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn package" } + stage('JUnit'){ + junit '*/tagrat/*.xml' + } stage('Tomcat-Deploy'){ sshagent(['tomcat-deploy']) { sh 'scp -o StrictHostKeyChecking=no /var/lib/jenkins/workspace/jenkinsfile_project/target/*.jar ubuntu@13.233.229.217:/opt/tomcat/webapps/' From f88b79dd1a8be12cebe4cff96dad2b904c05fb88 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 4 Mar 2019 14:31:48 +0530 Subject: [PATCH 42/80] Update Jenkinsfile --- Jenkinsfile | 48 +++++------------------------------------------- 1 file changed, 5 insertions(+), 43 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 00c3a8af..13e17a52 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,45 +1,7 @@ -pipeline +pipeline{ node{ - stage('SCM Checkout') { - git url:'https://github.com/razzpothula/maven-simple.git' + stage('SCM Checkout'){ + git url : } - stage('Compile'){ - //Get maven home path - def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnhome}/bin/mvn compile" - } - stage('SonarQube Analysis'){ - def mvnhome = tool name: 'mvn', type: 'maven' - withSonarQubeEnv('sonar'){ - sh "${mvnhome}/bin/mvn sonar:sonar" - } - } - stage("Quality Gate"){ - timeout(time: 1, unit: 'HOURS') { - // Just in case something goes wrong, pipeline will be killed after a timeout - def qg = waitForQualityGate() - // Reuse taskId previously collected by withSonarQubeEnv - if (qg.status != 'OK') { - error "Pipeline aborted due to quality gate failure: ${qg.status}" - } - } - } - stage('Package'){ - def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnhome}/bin/mvn package" - } - stage('JUnit'){ - junit '*/tagrat/*.xml' - } - stage('Tomcat-Deploy'){ - sshagent(['tomcat-deploy']) { - sh 'scp -o StrictHostKeyChecking=no /var/lib/jenkins/workspace/jenkinsfile_project/target/*.jar ubuntu@13.233.229.217:/opt/tomcat/webapps/' - } - } - stage('E-Mail Notification'){ - mail bcc: '', body: '''Email notification for job - thanks - rajesh - ''', cc: '', from: '', replyTo: '', subject: 'Jenkinsfile', to: 'rajeshpothula.bj@gmail.com' - } - } + } +} From c651cb1e983e0ef61b83d9b9e7339de17403cfd7 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 4 Mar 2019 14:32:51 +0530 Subject: [PATCH 43/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 13e17a52..0f359549 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline{ node{ stage('SCM Checkout'){ - git url : + git url :'https://github.com/razzpothula/maven-simple.git' } } } From 4fd1db64e53890b8ceff4f9bf8f103a18286a88b Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 4 Mar 2019 14:39:16 +0530 Subject: [PATCH 44/80] Update Jenkinsfile --- Jenkinsfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0f359549..1c3aed50 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,6 @@ -pipeline{ - node{ - stage('SCM Checkout'){ +pipeline + node{ + stage('SCM Checkout'){ git url :'https://github.com/razzpothula/maven-simple.git' } } -} From bb3fb2aaf59fcd89f25e76f534affba231177abd Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 4 Mar 2019 14:45:58 +0530 Subject: [PATCH 45/80] Update Jenkinsfile --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 1c3aed50..c6a2e2d1 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,4 +3,9 @@ pipeline stage('SCM Checkout'){ git url :'https://github.com/razzpothula/maven-simple.git' } + stage('Compile'){ + // get the maven path + def mvnhome = tool name: 'mvn', type: 'maven' + sh "${mvnhome}/bin/mvn compile" + } } From c437ac1dabfa2f7f4cc7e3b4b98e155788085d95 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 4 Mar 2019 15:13:46 +0530 Subject: [PATCH 46/80] Update Jenkinsfile --- Jenkinsfile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c6a2e2d1..8679ed95 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,5 +7,12 @@ pipeline // get the maven path def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" - } + } + stage('SonarQube Analysis'){ + def mvnhome = tool name: 'mvn', type: 'maven' + WithSonarQubeEnv('sonar'){ + sh "${mvnhome}/bin/mvn sonar:sonar" + } + } + } From 23c0e94e76b9bb7f9da2ef7abe425beadc4acdaf Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 4 Mar 2019 15:16:38 +0530 Subject: [PATCH 47/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8679ed95..61c76db7 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ pipeline } stage('SonarQube Analysis'){ def mvnhome = tool name: 'mvn', type: 'maven' - WithSonarQubeEnv('sonar'){ + withSonarQubeEnv('sonar'){ sh "${mvnhome}/bin/mvn sonar:sonar" } } From 14e961ea34c22eedbc9ec5e001c0ee7969c490ea Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Mon, 4 Mar 2019 15:26:26 +0530 Subject: [PATCH 48/80] Update Jenkinsfile --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 61c76db7..94b1905f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,6 +13,5 @@ pipeline withSonarQubeEnv('sonar'){ sh "${mvnhome}/bin/mvn sonar:sonar" } - } - - } + } + } From 1d6702850e3b3c4d93eae01b9c5f20ec6639e6bb Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 5 Mar 2019 12:01:15 +0530 Subject: [PATCH 49/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 94b1905f..ba129cbb 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -14,4 +14,4 @@ pipeline sh "${mvnhome}/bin/mvn sonar:sonar" } } - } + } From 32d8f3c8cd480e90c5f0a4f5d7b32f1ac89cfadf Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 5 Mar 2019 12:22:10 +0530 Subject: [PATCH 50/80] Update Jenkinsfile --- Jenkinsfile | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ba129cbb..98dfce3c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,16 +2,19 @@ pipeline node{ stage('SCM Checkout'){ git url :'https://github.com/razzpothula/maven-simple.git' - } - stage('Compile'){ + } + stage('Compile'){ // get the maven path def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" } stage('SonarQube Analysis'){ - def mvnhome = tool name: 'mvn', type: 'maven' + def mvnhome = tool name: 'mvn', type: 'maven' withSonarQubeEnv('sonar'){ - sh "${mvnhome}/bin/mvn sonar:sonar" - } - } - } + sh "${mvnhome}/bin/mvn sonar:sonar" + } + } + } + + + From 738c7fd47e5f262b7367a83a181f3b38f6b6919a Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 5 Mar 2019 13:01:09 +0530 Subject: [PATCH 51/80] Update Jenkinsfile --- Jenkinsfile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 98dfce3c..1e07ca5a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,20 +1,20 @@ pipeline - node{ - stage('SCM Checkout'){ - git url :'https://github.com/razzpothula/maven-simple.git' + node{ + stage('SCM Checkout'){ + git url :'https://github.com/razzpothula/maven-simple.git' + } + stage('Compile'){ + // get the maven path + def mvnhome = tool name: 'mvn', type: 'maven' + sh "${mvnhome}/bin/mvn compile" + } + stage('SonarQube Analysis'){ + def mvnhome = tool name: 'mvn', type: 'maven' + withSonarQubeEnv('sonar'){ + sh "${mvnhome}/bin/mvn sonar:sonar" + } + } } - stage('Compile'){ - // get the maven path - def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnhome}/bin/mvn compile" - } - stage('SonarQube Analysis'){ - def mvnhome = tool name: 'mvn', type: 'maven' - withSonarQubeEnv('sonar'){ - sh "${mvnhome}/bin/mvn sonar:sonar" - } - } - } From 3582e0a49c105cc2972ac96af2d57f36ba03a809 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 5 Mar 2019 13:29:00 +0530 Subject: [PATCH 52/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e07ca5a..2346f1c5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,7 +11,7 @@ pipeline stage('SonarQube Analysis'){ def mvnhome = tool name: 'mvn', type: 'maven' withSonarQubeEnv('sonar'){ - sh "${mvnhome}/bin/mvn sonar:sonar" + sh"${mvnhome}/bin/mvn sonar:sonar" } } } From 9e9d93326b360cac0fbba5ee9215f66f7a38ae59 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 5 Mar 2019 13:35:52 +0530 Subject: [PATCH 53/80] Update Jenkinsfile --- Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2346f1c5..f280ca1a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,12 +9,11 @@ pipeline sh "${mvnhome}/bin/mvn compile" } stage('SonarQube Analysis'){ + //we can check the sonarqube code analysis def mvnhome = tool name: 'mvn', type: 'maven' withSonarQubeEnv('sonar'){ sh"${mvnhome}/bin/mvn sonar:sonar" } - } - } - + } From 42e43df07bf3fb47c815287a9aad56bc0dbccd33 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 5 Mar 2019 13:38:22 +0530 Subject: [PATCH 54/80] Update Jenkinsfile --- Jenkinsfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f280ca1a..a39c30ad 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -12,8 +12,9 @@ pipeline //we can check the sonarqube code analysis def mvnhome = tool name: 'mvn', type: 'maven' withSonarQubeEnv('sonar'){ - sh"${mvnhome}/bin/mvn sonar:sonar" + sh "${mvnhome}/bin/mvn sonar:sonar" } - } + } + } From b0b787818f81e472cf0e535b4d7fba557d46045c Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 5 Mar 2019 13:40:24 +0530 Subject: [PATCH 55/80] Update Jenkinsfile --- Jenkinsfile | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index a39c30ad..bcb80d2f 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,20 +1,17 @@ pipeline - node{ - stage('SCM Checkout'){ - git url :'https://github.com/razzpothula/maven-simple.git' - } - stage('Compile'){ - // get the maven path - def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnhome}/bin/mvn compile" - } - stage('SonarQube Analysis'){ - //we can check the sonarqube code analysis + node{ + stage('SCM Checkout') { + git url:'https://github.com/razzpothula/maven-simple.git' + } + stage('Compile'){ + //Get maven home path def mvnhome = tool name: 'mvn', type: 'maven' - withSonarQubeEnv('sonar'){ - sh "${mvnhome}/bin/mvn sonar:sonar" - } - } - } - + sh "${mvnhome}/bin/mvn compile" + } + stage('SonarQube Analysis'){ + def mvnhome = tool name: 'mvn', type: 'maven' + withSonarQubeEnv('sonar'){ + sh "${mvnhome}/bin/mvn sonar:sonar" + } + } From c73907bd45e6fedb4f2d90d24474d98e1bbbab54 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 5 Mar 2019 13:42:18 +0530 Subject: [PATCH 56/80] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index bcb80d2f..1e628e82 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,5 +13,6 @@ pipeline withSonarQubeEnv('sonar'){ sh "${mvnhome}/bin/mvn sonar:sonar" } - } + } + } From 9dd59e74a4b8a285402526a53a4d99bbfc60bc7b Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 5 Mar 2019 13:53:03 +0530 Subject: [PATCH 57/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1e628e82..0862e1ff 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ pipeline } stage('SonarQube Analysis'){ def mvnhome = tool name: 'mvn', type: 'maven' - withSonarQubeEnv('sonar'){ + withSonarQubeEnv('sonar'){ sh "${mvnhome}/bin/mvn sonar:sonar" } } From 503a07bc8a82f68efe4b27050b109645d18576f0 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Tue, 5 Mar 2019 14:04:49 +0530 Subject: [PATCH 58/80] Update Jenkinsfile --- Jenkinsfile | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0862e1ff..8536b1d4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,9 +10,22 @@ pipeline } stage('SonarQube Analysis'){ def mvnhome = tool name: 'mvn', type: 'maven' - withSonarQubeEnv('sonar'){ + withSonarQubeEnv('sonar'){ sh "${mvnhome}/bin/mvn sonar:sonar" } - } + } + stage("Quality Gate"){ + timeout(time: 1, unit: 'HOURS') { + // Just in case something goes wrong, pipeline will be killed after a timeout + def qg = waitForQualityGate() + // Reuse taskId previously collected by withSonarQubeEnv + if (qg.status != 'OK') { + error "Pipeline aborted due to quality gate failure: ${qg.status}" + } + } + } + stage('Package'){ + def mvnhome = tool name: 'mvn', type: 'maven' + sh "${mvnhome}/bin/mvn package" + } } - From b2b8987ddb3292bc771f4fd42fb6c3f0ea7cd09c Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sat, 9 Mar 2019 17:35:18 +0530 Subject: [PATCH 59/80] Delete Jenkinsfile --- Jenkinsfile | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index 8536b1d4..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,31 +0,0 @@ -pipeline - node{ - stage('SCM Checkout') { - git url:'https://github.com/razzpothula/maven-simple.git' - } - stage('Compile'){ - //Get maven home path - def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnhome}/bin/mvn compile" - } - stage('SonarQube Analysis'){ - def mvnhome = tool name: 'mvn', type: 'maven' - withSonarQubeEnv('sonar'){ - sh "${mvnhome}/bin/mvn sonar:sonar" - } - } - stage("Quality Gate"){ - timeout(time: 1, unit: 'HOURS') { - // Just in case something goes wrong, pipeline will be killed after a timeout - def qg = waitForQualityGate() - // Reuse taskId previously collected by withSonarQubeEnv - if (qg.status != 'OK') { - error "Pipeline aborted due to quality gate failure: ${qg.status}" - } - } - } - stage('Package'){ - def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnhome}/bin/mvn package" - } - } From a42ef6184c147151870a8e083e76911b5a2c649b Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Fri, 15 Mar 2019 18:18:21 +0530 Subject: [PATCH 60/80] Create Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1 @@ + From 0d083161d4e50a10747f3d5998ac0a9522fc9924 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Fri, 15 Mar 2019 18:23:56 +0530 Subject: [PATCH 61/80] scm checkout --- Jenkinsfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8b137891..1918784e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1 +1,6 @@ - +pipeline{ + node('SCM checkout'){ + //Get SCM code from the github Repository URL + url 'https://github.com/razzpothula/maven-simple.git' + } +} From 3939e4a3ff6ecdd6d1717494901accfa04796c82 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Fri, 15 Mar 2019 18:25:06 +0530 Subject: [PATCH 62/80] Update Jenkinsfile --- Jenkinsfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1918784e..ef786433 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,6 +1,5 @@ -pipeline{ +pipeline node('SCM checkout'){ //Get SCM code from the github Repository URL url 'https://github.com/razzpothula/maven-simple.git' } -} From 30395466544dfcf83ed23df033602ef29484156f Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Fri, 15 Mar 2019 22:36:18 +0530 Subject: [PATCH 63/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index ef786433..69ea529e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline node('SCM checkout'){ //Get SCM code from the github Repository URL - url 'https://github.com/razzpothula/maven-simple.git' + git URL:'https://github.com/razzpothula/maven-simple.git' } From 569c54c5c475f15a1dcff578156ec76009c6bb63 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Fri, 15 Mar 2019 22:38:40 +0530 Subject: [PATCH 64/80] Update Jenkinsfile --- Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 69ea529e..e27c90da 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,5 +1,5 @@ pipeline - node('SCM checkout'){ + node('SCM Checkout'){ //Get SCM code from the github Repository URL git URL:'https://github.com/razzpothula/maven-simple.git' - } + } From b1895c8a8fb187f0b450474daa14d8eb7f441afb Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Thu, 28 Mar 2019 17:53:26 +0530 Subject: [PATCH 65/80] Delete Jenkinsfile --- Jenkinsfile | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile deleted file mode 100644 index e27c90da..00000000 --- a/Jenkinsfile +++ /dev/null @@ -1,5 +0,0 @@ -pipeline - node('SCM Checkout'){ - //Get SCM code from the github Repository URL - git URL:'https://github.com/razzpothula/maven-simple.git' - } From 9077a3de036b95a48ead1f50dfcbd8f5dd3fd1d5 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 5 Jul 2020 16:55:01 +0530 Subject: [PATCH 66/80] Create Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1 @@ + From 12e9e186714170bb8afe9ff41fa733ce9639f40e Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 5 Jul 2020 16:58:29 +0530 Subject: [PATCH 67/80] Update Jenkinsfile --- Jenkinsfile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 8b137891..c5f52a97 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1 +1,10 @@ - +pipeline + node{ + stage('SCM Checkout') { + git url:'https://github.com/razzpothula/maven-simple.git' + } + stage('Compile'){ + //Get maven home path + def mvnhome = tool name: 'mvn', type: 'maven' + sh "${mvnhome}/bin/mvn compile" + } From 420682eee4b434526257bfe4ba655dc1be0eecb1 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 5 Jul 2020 16:59:33 +0530 Subject: [PATCH 68/80] Update Jenkinsfile --- Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index c5f52a97..fa3c9323 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,10 +1,11 @@ pipeline node{ stage('SCM Checkout') { - git url:'https://github.com/razzpothula/maven-simple.git' + https://github.com/razzpothula/maven-simple.git } stage('Compile'){ //Get maven home path def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" } + } From 17138852843bb416a5815382ea07f9cea3d903fa Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 5 Jul 2020 17:02:02 +0530 Subject: [PATCH 69/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fa3c9323..3ed55ff2 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ pipeline node{ stage('SCM Checkout') { - https://github.com/razzpothula/maven-simple.git + git url:'https://github.com/razzpothula/maven-simple.git' } stage('Compile'){ //Get maven home path From 978f55e6685a7d93bb1e44f130195be33dfef23d Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 13 Dec 2020 15:20:13 +0530 Subject: [PATCH 70/80] Update Jenkinsfile --- Jenkinsfile | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3ed55ff2..8cd30f8b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,9 +3,4 @@ pipeline stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } - stage('Compile'){ - //Get maven home path - def mvnhome = tool name: 'mvn', type: 'maven' - sh "${mvnhome}/bin/mvn compile" - } } From e0a337c7a4fed60c25eeb7e8cd5d73e32619e49e Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 13 Dec 2020 15:31:48 +0530 Subject: [PATCH 71/80] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 8cd30f8b..193bee05 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,3 +4,4 @@ pipeline git url:'https://github.com/razzpothula/maven-simple.git' } } + From 44b8cee0f79b1a246dfc6b73c66496d6034ac9ed Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 13 Dec 2020 15:41:08 +0530 Subject: [PATCH 72/80] Update Jenkinsfile --- Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 193bee05..fa090032 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,5 +3,11 @@ pipeline stage('SCM Checkout') { git url:'https://github.com/razzpothula/maven-simple.git' } + stage('Compile'){ + //Get maven home path + def mvnhome = tool name: 'mvn', type: 'maven' + sh "${mvnhome}/bin/mvn compile" + } } +} From ce44a68f042e85b15b08458bfed402baa573dc6e Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 13 Dec 2020 15:43:18 +0530 Subject: [PATCH 73/80] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index fa090032..fcc33597 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,5 +9,5 @@ pipeline sh "${mvnhome}/bin/mvn compile" } } -} + From 8a6d65f84a90474d9bd0e39080ce97ee5335a266 Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 13 Dec 2020 18:39:10 +0530 Subject: [PATCH 74/80] Update Jenkinsfile --- Jenkinsfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index fcc33597..8a30e716 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -8,6 +8,11 @@ pipeline def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" } + stage('SonarQube Analysis'){ + def mvnhome = tool name: 'mvn', type: 'maven' + withSonarQubeEnv('sonar'){ + sh "${mvnhome}/bin/mvn sonar:sonar" + } } From 13b9fa5af535e86dd49845e0927332c237a4cd9e Mon Sep 17 00:00:00 2001 From: razzpothula <31669137+razzpothula@users.noreply.github.com> Date: Sun, 13 Dec 2020 18:41:16 +0530 Subject: [PATCH 75/80] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 8a30e716..6ae27863 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -13,6 +13,7 @@ pipeline withSonarQubeEnv('sonar'){ sh "${mvnhome}/bin/mvn sonar:sonar" } + } } From 052a92f74828ce1306ac714ba712f31dda16008e Mon Sep 17 00:00:00 2001 From: rajesh Date: Sun, 7 Feb 2021 22:55:15 +0530 Subject: [PATCH 76/80] add cipipelinefile --- cipipeline | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 cipipeline diff --git a/cipipeline b/cipipeline new file mode 100644 index 00000000..c1366a5b --- /dev/null +++ b/cipipeline @@ -0,0 +1,5 @@ +pipeline + node{ + stage('SCM Checkout') { + git url:'https://github.com/razzpothula/maven-simple.git' + } From f07f338c0c1832da06d588e49cdad86218d18afc Mon Sep 17 00:00:00 2001 From: rajesh Date: Sun, 7 Feb 2021 23:19:42 +0530 Subject: [PATCH 77/80] add yml script --- yml | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 yml diff --git a/yml b/yml new file mode 100644 index 00000000..59c24d90 --- /dev/null +++ b/yml @@ -0,0 +1,4 @@ +--- +- name:java + host: + become: From eba3f4ba8cca17962be023eb99ed51349a63d99a Mon Sep 17 00:00:00 2001 From: rajesh Date: Sat, 10 Jul 2021 23:07:53 +0530 Subject: [PATCH 78/80] sonarqube stage remove --- Jenkinsfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 6ae27863..0f6202ba 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -7,11 +7,7 @@ pipeline //Get maven home path def mvnhome = tool name: 'mvn', type: 'maven' sh "${mvnhome}/bin/mvn compile" - } - stage('SonarQube Analysis'){ - def mvnhome = tool name: 'mvn', type: 'maven' - withSonarQubeEnv('sonar'){ - sh "${mvnhome}/bin/mvn sonar:sonar" + } } } From b5632cc890a7900ebab16e16d01799bc5dcb3280 Mon Sep 17 00:00:00 2001 From: rajesh Date: Sat, 10 Jul 2021 23:25:49 +0530 Subject: [PATCH 79/80] new branch --- scriptfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 scriptfile diff --git a/scriptfile b/scriptfile new file mode 100644 index 00000000..26a4dc8f --- /dev/null +++ b/scriptfile @@ -0,0 +1,20 @@ +pipeline { + agent any + stages { + stage('Build') { + steps { + // + } + } + stage('Test') { + steps { + // + } + } + stage('Deploy') { + steps { + // + } + } + } +} From f866b65ebadfc566d4f9fcb2f0ef72307d60858b Mon Sep 17 00:00:00 2001 From: rajesh Date: Sat, 10 Jul 2021 23:51:39 +0530 Subject: [PATCH 80/80] create one stage script --- rajfile | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 rajfile diff --git a/rajfile b/rajfile new file mode 100644 index 00000000..45e7138f --- /dev/null +++ b/rajfile @@ -0,0 +1,5 @@ +pipeline { + agent any + stages { + stage('Build') { + steps {