From a90254514fdc7bc3685d2905f98630ab3476c65b Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Wed, 5 Aug 2020 17:10:08 +0530 Subject: [PATCH 01/11] Update Jenkinsfile --- Jenkinsfile | 30 ++++++++++++++++++++---------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 2c0b4c87..3eb46e1e 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,30 +3,40 @@ pipeline { stages { stage ('Compile Stage') { + when { + branch 'master' + } steps { - withMaven(maven : 'maven_3_5_0') { - sh 'mvn clean compile' - } + sh ''' + echo "Hello master branch" + ''' } } stage ('Testing Stage') { + when { + branch 'develop' + } steps { - withMaven(maven : 'maven_3_5_0') { - sh 'mvn test' - } + sh ''' + echo "Hello develop branch" + ''' } } stage ('Deployment Stage') { + when { + branch 'feature-1' + } + steps { - withMaven(maven : 'maven_3_5_0') { - sh 'mvn deploy' - } + sh ''' + echo "Hello feature-1 branch" + ''' } } } -} \ No newline at end of file +} From 93541f43ee1dab693a6d554cce6f6142aeff9c86 Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Thu, 6 Aug 2020 11:32:49 +0530 Subject: [PATCH 02/11] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5570d746..eaaf7470 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,5 @@ ### Fizz Buzz is a game where - if the number is divisible by 3, you say Fizz -- if the number is divisible by 5, you say Buzz -- if neither, you say the number \ No newline at end of file +- if the number is divisible by 5, you ssay Buzz +- if neither, you say the number From ea94cd82e9b93e8fd3270f304cbe351bc74a4153 Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Thu, 6 Aug 2020 17:32:50 +0530 Subject: [PATCH 03/11] Update Jenkinsfile --- Jenkinsfile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3eb46e1e..b08901a4 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -2,17 +2,26 @@ pipeline { agent any stages { + when { + branch 'master' + } stage ('Compile Stage') { - when { - branch 'master' - } - steps { sh ''' echo "Hello master branch" ''' } } + stage ('Testing Purpose') { + steps { + sh ''' + echo "Second stage execution" + ''' + } + } + } + + stages { stage ('Testing Stage') { when { From d3a686092a0fbf4e1dd3653ff22f02d14adfede2 Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Mon, 17 Aug 2020 21:41:10 +0530 Subject: [PATCH 04/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index eaaf7470..cc53cf61 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Fizz Buzz Example in Java 8 using JUnit 5 -### Fizz Buzz is a game where +### Fizz Buzz is a game where yes - if the number is divisible by 3, you say Fizz - if the number is divisible by 5, you ssay Buzz - if neither, you say the number From d59116a7d5feaa42a4f0c6e851c003c9cf8145d1 Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Mon, 17 Aug 2020 23:04:52 +0530 Subject: [PATCH 05/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index cc53cf61..8058d3f6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Fizz Buzz Example in Java 8 using JUnit 5 -### Fizz Buzz is a game where yes +### Fizz Buzz is a game where yes yes - if the number is divisible by 3, you say Fizz - if the number is divisible by 5, you ssay Buzz - if neither, you say the number From 2b6a58e3ab620de3b244c30af3b09b96168460b3 Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Mon, 17 Aug 2020 23:14:35 +0530 Subject: [PATCH 06/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8058d3f6..64ecfcf4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Fizz Buzz Example in Java 8 using JUnit 5 -### Fizz Buzz is a game where yes yes +### Fizz Buzz is a game where yes yes yes - if the number is divisible by 3, you say Fizz - if the number is divisible by 5, you ssay Buzz - if neither, you say the number From f7b1d6ed0a207aad7a9309decdccd29a8207b8c8 Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Mon, 17 Aug 2020 23:18:21 +0530 Subject: [PATCH 07/11] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 64ecfcf4..ed61144e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ ## Fizz Buzz Example in Java 8 using JUnit 5 -### Fizz Buzz is a game where yes yes yes +### Fizz Buzz is a game where yes yes yes yes - if the number is divisible by 3, you say Fizz - if the number is divisible by 5, you ssay Buzz - if neither, you say the number From d51c34bcb26118af45fbd589f0351b0ab8ff81cb Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Fri, 18 Feb 2022 12:54:52 +0530 Subject: [PATCH 08/11] Update Jenkinsfile --- Jenkinsfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index b08901a4..ef7e9331 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -9,6 +9,8 @@ pipeline { steps { sh ''' echo "Hello master branch" + echo ${BRANCH_NAME} + echo env.BRANCH_NAME ''' } } From 8a23180cae594dfb13323d8e36261090c245ee07 Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Fri, 18 Feb 2022 12:55:51 +0530 Subject: [PATCH 09/11] Update Jenkinsfile --- Jenkinsfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index ef7e9331..5aa70568 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,11 +1,11 @@ pipeline { agent any - stages { - when { - branch 'master' - } + stages { stage ('Compile Stage') { + when { + branch 'master' + } steps { sh ''' echo "Hello master branch" From c7f66bff84b570c952d56177830ae52ca2b6c106 Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Fri, 18 Feb 2022 12:56:40 +0530 Subject: [PATCH 10/11] Update Jenkinsfile --- Jenkinsfile | 3 --- 1 file changed, 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 5aa70568..754f695b 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -21,9 +21,6 @@ pipeline { ''' } } - } - - stages { stage ('Testing Stage') { when { From a37c1d98b1fb280369caf65e2f90e412998d4602 Mon Sep 17 00:00:00 2001 From: kanth0447 Date: Fri, 18 Feb 2022 12:59:27 +0530 Subject: [PATCH 11/11] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 754f695b..e5411f18 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,7 +10,7 @@ pipeline { sh ''' echo "Hello master branch" echo ${BRANCH_NAME} - echo env.BRANCH_NAME + echo ${BUILD_ID} ''' } }