From 44d49c217eacc2e5288ca53785cd7c53f775ebaf Mon Sep 17 00:00:00 2001 From: IdirMellaz Date: Sat, 15 Mar 2025 14:04:07 +0000 Subject: [PATCH 1/7] Git Polling Log --- worker/pom.xml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/worker/pom.xml b/worker/pom.xml index 15e1b5b5..19aa1ceb 100644 --- a/worker/pom.xml +++ b/worker/pom.xml @@ -103,3 +103,6 @@ + + + From 2b4f3b5dd84f7e84cd46836e196e9f44506f7614 Mon Sep 17 00:00:00 2001 From: IdirMellaz Date: Sat, 15 Mar 2025 16:18:03 +0000 Subject: [PATCH 2/7] 2nd Git Polling Log --- worker/pom.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/worker/pom.xml b/worker/pom.xml index 19aa1ceb..7dfc23ba 100644 --- a/worker/pom.xml +++ b/worker/pom.xml @@ -106,3 +106,12 @@ + + + + + + + + + From f2f7977858eede5282e17d914152a71800452937 Mon Sep 17 00:00:00 2001 From: IdirMellaz Date: Sat, 29 Mar 2025 14:08:18 +0000 Subject: [PATCH 3/7] Test Master Branch Protection --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index b8ad8a94..23f462bd 100644 --- a/README.md +++ b/README.md @@ -58,3 +58,4 @@ Note ---- The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client. +Test Master Branch Protection From 41c7dbe1a051fe94b64060c13be81dd301a2e727 Mon Sep 17 00:00:00 2001 From: IdirMellaz Date: Sat, 29 Mar 2025 14:17:06 +0000 Subject: [PATCH 4/7] Test Master Branch Protection again --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 23f462bd..05f69148 100644 --- a/README.md +++ b/README.md @@ -58,4 +58,4 @@ Note ---- The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client. -Test Master Branch Protection +Test Master Branch Protection again From 16288f594e0c41163e686bea4c72df1659768037 Mon Sep 17 00:00:00 2001 From: IdirMellaz Date: Sat, 29 Mar 2025 14:29:40 +0000 Subject: [PATCH 5/7] Test pull brach adding --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 05f69148..7a142935 100644 --- a/README.md +++ b/README.md @@ -58,4 +58,4 @@ Note ---- The voting application only accepts one vote per client. It does not register votes if a vote has already been submitted from a client. -Test Master Branch Protection again +test pull branch From e39ea1d5a3c39bbbcadd7c4aa31c4ab4e514fea6 Mon Sep 17 00:00:00 2001 From: IdirMellaz Date: Sat, 29 Mar 2025 15:56:23 +0000 Subject: [PATCH 6/7] Add Jenkinsfile --- Jenkinsfile | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Jenkinsfile diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..daa8063f --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,30 @@ +pipeline { + agent any + + stages{ + stage("one"){ + steps{ + echo 'step 1' + sleep 3 + } + } + stage("two"){ + steps{ + echo 'step 2' + sleep 9 + } + } + stage("three"){ + steps{ + echo 'step 3' + sleep 5 + } + } + } + + post{ + always{ + echo 'This pipeline is completed.' + } + } +} From 844893b9f3209dd0233e3e09aa8970c7182eb193 Mon Sep 17 00:00:00 2001 From: IdirMellaz Date: Sat, 29 Mar 2025 17:05:59 +0000 Subject: [PATCH 7/7] Feat:Configuring Conditional Stage Execution --- Jenkinsfile | 53 +++++++++++++++++++++++++++++------------------------ 1 file changed, 29 insertions(+), 24 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index daa8063f..2d63b7f5 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,30 +1,35 @@ pipeline { - agent any + agent any - stages{ - stage("one"){ - steps{ - echo 'step 1' - sleep 3 - } - } - stage("two"){ - steps{ - echo 'step 2' - sleep 9 - } - } - stage("three"){ - steps{ - echo 'step 3' - sleep 5 + stages{ + stage("one"){ + steps{ + echo 'step 1' + sleep 3 + } + } + stage("two"){ + steps{ + echo 'step 2' + sleep 9 + } + } + stage("three"){ + + when{ + branch 'master' + changeset "**/worker/**" } - } - } + steps{ + echo 'step 3' + sleep 5 + } + } + } - post{ - always{ - echo 'This pipeline is completed.' - } + post{ + always{ + echo 'This pipeline is completed.' } + } }