Commit eca2761a authored by Floris Berendsen's avatar Floris Berendsen

WIP: jenkinsfile Superbuild and Test stages

parent d85c548a
......@@ -31,26 +31,31 @@ def updateGithubCommitStatus(build) {
node('lkeb-vm-test') {
stage('Init') {
cmake = tool 'CMake 3.5.1'
sh 'rm -rf build'
sh 'mkdir -p build'
}
stage('Init') {
cmake = tool 'CMake 3.5.1'
sh 'rm -rf build'
sh 'mkdir -p build'
}
timeout(120) {
stage('Checkout') {
sh 'mkdir -p src'
dir('src') {
checkout scm
}
}
stage('CTest') {
dir('.') {
sh "`dirname ${ cmake }`/ctest --script src/CTest.cmake"
}
}
dir('src') {
updateGithubCommitStatus(currentBuild)
}
}
timeout(120) {
stage('Checkout') {
sh 'mkdir -p src'
dir('src') {
checkout scm
}
}
stage('SuperBuild') {
dir('.') {
sh "`dirname ${ cmake }`/ctest --script src/CTest.cmake"
}
}
stage('Test') {
dir('build/SuperElastix-build') {
sh "`dirname ${ cmake }`/ctest --script ../../src/CTest.cmake"
}
}
dir('src') {
updateGithubCommitStatus(currentBuild)
}
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment