diff --git a/Jenkinsfile b/Jenkinsfile new file mode 100644 index 00000000..22953a2f --- /dev/null +++ b/Jenkinsfile @@ -0,0 +1,36 @@ +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/worker/pom.xml b/worker/pom.xml index 15e1b5b5..cb12a6ff 100644 --- a/worker/pom.xml +++ b/worker/pom.xml @@ -6,7 +6,8 @@ worker worker 1.0-SNAPSHOT - + + UTF-8 UTF-8