Skip to content
Open

a #225

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
73 changes: 36 additions & 37 deletions worker/Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,41 +1,40 @@
pipeline {
agent{
docker{
image 'maven:3.9.8-sapmachine-21'
args '-v $HOME/.m2:/root/.m2'
}
}
stages{
stage('build'){
steps{
echo 'building worker app'
dir('worker'){
sh 'mvn compile'
}
}
}
stage('test'){
steps{
echo 'running unit tests on worker app'
dir('worker'){
sh 'mvn clean test'
}
}
}
stage('package'){
steps{
echo 'packaging worker app into a jarfile'
dir('worker'){
sh 'mvn package -DskipTests'
archiveArtifacts artifacts: '**/target/*.jar', fingerprint: true
}
}
}
}
post{
always{
echo 'the job is complete'
pipeline {
agent any

tools{
maven 'maven 3.9.8'
}

stages{
stage("build"){
steps{
echo 'Compiling worker app'
dir('worker'){
sh 'mvn compile'
}
}
}
stage("test"){
steps{
echo 'Running Unit Tests on worker app'
dir('worker') {
sh 'mvn clean test'
}
}
}
stage("package"){
steps{
echo 'Packaging worker app'
dir('worker'){
sh 'mvn package'
}
}
}
}
post{
always{
echo 'Building multibranch pipeline for worker is completed..'
}
}
}