Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added add.yaml
Empty file.
49 changes: 49 additions & 0 deletions worker/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -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..'
}
}

}