diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..2d63b7f5 --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,35 @@ +pipeline { + agent any + + 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.' + } + } +} diff --git a/README.md b/README.md index b8ad8a94..7a142935 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 pull branch diff --git a/worker/pom.xml b/worker/pom.xml index 15e1b5b5..7dfc23ba 100644 --- a/worker/pom.xml +++ b/worker/pom.xml @@ -103,3 +103,15 @@ + + + + + + + + + + + +