From 5d2367cdef0ee0de974f73e78862da33fceed9ca Mon Sep 17 00:00:00 2001 From: lolafaith <79930437+lolafaith@users.noreply.github.com> Date: Wed, 7 Apr 2021 11:22:33 -0500 Subject: [PATCH 1/5] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index ab4b99faf..cf1956821 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -23,6 +23,7 @@ pipeline{ stage('CodeReview'){ agent any steps{ + echo 'codereview' sh 'mvn pmd:pmd' } } From fedf975673815f038d4ea18c0120d715dacdf0b5 Mon Sep 17 00:00:00 2001 From: lolafaith <79930437+lolafaith@users.noreply.github.com> Date: Wed, 7 Apr 2021 11:25:35 -0500 Subject: [PATCH 2/5] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index cf1956821..36397ba95 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline{ agent any steps{ echo 'compiling..' - sh 'mvn compile' + sh 'mvn compile1' } } stage('CodeReview'){ From e3b25705fd07f623c30986cc8dda8a23d1627d5c Mon Sep 17 00:00:00 2001 From: lolafaith <79930437+lolafaith@users.noreply.github.com> Date: Thu, 8 Apr 2021 09:36:26 -0500 Subject: [PATCH 3/5] Update Jenkinsfile --- Jenkinsfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Jenkinsfile b/Jenkinsfile index 36397ba95..4db61386c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -19,6 +19,16 @@ pipeline{ echo 'compiling..' sh 'mvn compile1' } + post { + success { + echo 'Job executed successfully' + } + failure { + echo 'faitled due to exit code 1' + } + unstable{ + echo 'build unstable' + } } stage('CodeReview'){ agent any From 21ec3e9145017842d963e6eb7d4de5b6c1b7308b Mon Sep 17 00:00:00 2001 From: lolafaith <79930437+lolafaith@users.noreply.github.com> Date: Thu, 8 Apr 2021 09:39:18 -0500 Subject: [PATCH 4/5] Update Jenkinsfile --- Jenkinsfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 4db61386c..782918045 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -17,7 +17,7 @@ pipeline{ agent any steps{ echo 'compiling..' - sh 'mvn compile1' + sh 'mvn compile' } post { success { From e80ade938cf4ee491cb30cde712d541bbb174eb6 Mon Sep 17 00:00:00 2001 From: lolafaith <79930437+lolafaith@users.noreply.github.com> Date: Thu, 8 Apr 2021 09:42:13 -0500 Subject: [PATCH 5/5] Update Jenkinsfile --- Jenkinsfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Jenkinsfile b/Jenkinsfile index 782918045..1134f01fe 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -28,6 +28,7 @@ pipeline{ } unstable{ echo 'build unstable' + } } } stage('CodeReview'){