From 06210a99b1f8cd20c3bbfceba9bc8abdf15b0373 Mon Sep 17 00:00:00 2001 From: aderockdami Date: Sat, 8 Jan 2022 15:24:38 +1100 Subject: [PATCH 01/10] added jenkinsfile --- worker/Jenkinsfile | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 worker/Jenkinsfile diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile new file mode 100644 index 0000000000..fe47344ab4 --- /dev/null +++ b/worker/Jenkinsfile @@ -0,0 +1,34 @@ +pipeline { + agent any + tools { + maven 'Maven 3.6.1' + } + stages { + stage ('build') { + steps{ + echo 'Compliling worker app' + dir ('worker') + sh 'mvn compile' + } + + } + } + stage ('test') { + steps{ + echo 'Running unit test on worker App' + + } + } + stage ('package') { + steps{ + echo 'Packaging worker App' + } + } + } + post { + always { + echo 'completed' + } + } + +} \ No newline at end of file From f8444a13f6342474ad5ec1774786ad30c66d19bc Mon Sep 17 00:00:00 2001 From: aderockdami Date: Sat, 8 Jan 2022 16:10:04 +1100 Subject: [PATCH 02/10] fixed --- worker/Jenkinsfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile index fe47344ab4..ffd76fa34e 100644 --- a/worker/Jenkinsfile +++ b/worker/Jenkinsfile @@ -24,11 +24,10 @@ pipeline { echo 'Packaging worker App' } } - } + post { always { echo 'completed' } } - -} \ No newline at end of file +} From 0307596cfaf64f370a164d4a7906b07b539ce700 Mon Sep 17 00:00:00 2001 From: aderockdami Date: Sat, 8 Jan 2022 16:17:39 +1100 Subject: [PATCH 03/10] fixed --- worker/Jenkinsfile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile index fe47344ab4..a27c6c2fa0 100644 --- a/worker/Jenkinsfile +++ b/worker/Jenkinsfile @@ -3,7 +3,7 @@ pipeline { tools { maven 'Maven 3.6.1' } - stages { + stages{ stage ('build') { steps{ echo 'Compliling worker app' @@ -11,8 +11,8 @@ pipeline { sh 'mvn compile' } - } } + stage ('test') { steps{ echo 'Running unit test on worker App' @@ -25,10 +25,12 @@ pipeline { } } } +} post { always { echo 'completed' } } - -} \ No newline at end of file + + + \ No newline at end of file From 0b39e321bd90a8f168ca1474c7307e2378c89b3d Mon Sep 17 00:00:00 2001 From: aderockdami Date: Sat, 8 Jan 2022 16:22:07 +1100 Subject: [PATCH 04/10] fixed again --- worker/Jenkinsfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile index a27c6c2fa0..ee1e363c48 100644 --- a/worker/Jenkinsfile +++ b/worker/Jenkinsfile @@ -13,13 +13,13 @@ pipeline { } - stage ('test') { + stage ('test') { steps{ echo 'Running unit test on worker App' } } - stage ('package') { + stage ('package') { steps{ echo 'Packaging worker App' } From 0cc04da9de4a1236d4464052caba16a175c3f0dc Mon Sep 17 00:00:00 2001 From: aderockdami Date: Sat, 8 Jan 2022 16:34:04 +1100 Subject: [PATCH 05/10] fixed again --- worker/Jenkinsfile | 7 ------- 1 file changed, 7 deletions(-) diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile index ee1e363c48..2e525913cc 100644 --- a/worker/Jenkinsfile +++ b/worker/Jenkinsfile @@ -26,11 +26,4 @@ pipeline { } } } - post { - always { - echo 'completed' - } - } - - \ No newline at end of file From eb8f5a2b8629334243ae4eac25ea3c97879446c9 Mon Sep 17 00:00:00 2001 From: aderockdami Date: Sat, 8 Jan 2022 16:51:42 +1100 Subject: [PATCH 06/10] final --- worker/Jenkinsfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile index a8143e4736..ea5e419c9a 100644 --- a/worker/Jenkinsfile +++ b/worker/Jenkinsfile @@ -7,8 +7,9 @@ pipeline { stage ('build') { steps{ echo 'Compliling worker app' - dir ('worker') + dir ('worker'){ sh 'mvn compile' + } } } From 953edaf057459def027534ac5916565f941f05d4 Mon Sep 17 00:00:00 2001 From: aderockdami Date: Sat, 8 Jan 2022 17:15:06 +1100 Subject: [PATCH 07/10] final --- worker/Jenkinsfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile index ea5e419c9a..2f609a140b 100644 --- a/worker/Jenkinsfile +++ b/worker/Jenkinsfile @@ -26,4 +26,10 @@ pipeline { } } } + post{ + always{ + echo 'Build pipeline for workers is complete..' + } + } + } From afc3cfea7f6fb03cbdf139234091db1df824cacf Mon Sep 17 00:00:00 2001 From: aderockdami Date: Sat, 8 Jan 2022 17:30:14 +1100 Subject: [PATCH 08/10] finalll --- worker/Jenkinsfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile index 2f609a140b..c7edc4801d 100644 --- a/worker/Jenkinsfile +++ b/worker/Jenkinsfile @@ -23,11 +23,15 @@ pipeline { stage ('package') { steps{ echo 'Packaging worker App' + dir('worker'){ + sh 'mvn package -Dskiptest' + } } } } post{ always{ + archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true echo 'Build pipeline for workers is complete..' } } From d81b3a37626293005d2e9d8edf24170a97ed4da1 Mon Sep 17 00:00:00 2001 From: aderockdami Date: Sat, 8 Jan 2022 17:56:32 +1100 Subject: [PATCH 09/10] changes --- worker/Jenkinsfile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile index c7edc4801d..41a3e86067 100644 --- a/worker/Jenkinsfile +++ b/worker/Jenkinsfile @@ -5,6 +5,9 @@ pipeline { } stages{ stage ('build') { + when{ + changeset "**/worker/**" + } steps{ echo 'Compliling worker app' dir ('worker'){ @@ -15,23 +18,30 @@ pipeline { } stage ('test') { + when{ + changeset "**/worker/**" + } steps{ echo 'Running unit test on worker App' } } stage ('package') { + when{ + branch 'master' + changeset "**/worker/**" + } steps{ echo 'Packaging worker App' dir('worker'){ sh 'mvn package -Dskiptest' + archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true } } } } post{ always{ - archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true echo 'Build pipeline for workers is complete..' } } From d78e787ce4982573d5bf30ce620c57580516959b Mon Sep 17 00:00:00 2001 From: aderockdami Date: Sat, 8 Jan 2022 18:00:57 +1100 Subject: [PATCH 10/10] changes --- add.yaml | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 add.yaml diff --git a/add.yaml b/add.yaml new file mode 100644 index 0000000000..e69de29bb2