diff --git a/add.yaml b/add.yaml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/worker/Jenkinsfile b/worker/Jenkinsfile new file mode 100644 index 0000000000..41a3e86067 --- /dev/null +++ b/worker/Jenkinsfile @@ -0,0 +1,49 @@ +pipeline { + agent any + tools { + maven 'Maven 3.6.1' + } + stages{ + stage ('build') { + when{ + changeset "**/worker/**" + } + steps{ + echo 'Compliling worker app' + dir ('worker'){ + sh 'mvn compile' + } + } + + } + + 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{ + echo 'Build pipeline for workers is complete..' + } + } + +}