Updated Jenkinsfile

This commit is contained in:
WolverinDEV 2018-11-01 17:00:46 +01:00
parent b57e670356
commit cd540cc4d0

76
Jenkinsfile vendored
View File

@ -34,12 +34,26 @@ pipeline {
expression { params.build_libraries } expression { params.build_libraries }
} }
steps {
sh 'apt-get update' stages {
sh 'git reset --hard origin/master; git submodule update --init --remote --recursive --force' stage ('Updating libraries') {
sh 'git submodule update --merge' steps {
sh './attach_modules.sh' sh 'apt-get update'
sh 'cd libraries; ./build.sh' sh 'git reset --hard origin/master; git submodule update --init --remote --recursive --force'
sh 'git submodule update --merge'
sh './attach_modules.sh'
}
}
stage ('Building libraries') {
when {
expression { params.build_libraries }
}
steps {
sh 'cd libraries; ./build.sh'
}
}
} }
} }
@ -79,13 +93,26 @@ pipeline {
expression { params.build_libraries } expression { params.build_libraries }
} }
steps {
sh 'apt-get update'
sh 'git reset --hard origin/master; git submodule update --init --remote --recursive --force'
sh 'git submodule update --merge'
sh './attach_modules.sh'
sh 'cd libraries; ./build.sh'
stages {
stage ('Updating libraries') {
steps {
sh 'apt-get update'
sh 'git reset --hard origin/master; git submodule update --init --remote --recursive --force'
sh 'git submodule update --merge'
sh './attach_modules.sh'
}
}
stage ('Building libraries') {
when {
expression { params.build_libraries }
}
steps {
sh 'cd libraries; ./build.sh'
}
}
} }
} }
@ -126,13 +153,26 @@ pipeline {
expression { params.build_libraries } expression { params.build_libraries }
} }
steps {
sh 'apt-get update'
sh 'git reset --hard origin/master; git submodule update --init --remote --recursive --force'
sh 'git submodule update --merge'
sh './attach_modules.sh'
sh 'cd libraries; ./build.sh'
stages {
stage ('Updating libraries') {
steps {
sh 'apt-get update'
sh 'git reset --hard origin/master; git submodule update --init --remote --recursive --force'
sh 'git submodule update --merge'
sh './attach_modules.sh'
}
}
stage ('Building libraries') {
when {
expression { params.build_libraries }
}
steps {
sh 'cd libraries; ./build.sh'
}
}
} }
} }