You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

44 lines
903 B

node {
def cmakeTool
stage('Preparation') {
// Get some code from a GitHub repository
checkout scm
cmakeTool = tool name: 'InSearchPath', type: 'hudson.plugins.cmake.CmakeTool'
sh "rm -rf build"
sh "mkdir -p build"
}
stage('Configure') {
dir("build") {
sh "${cmakeTool} .."
}
}
stage('Build') {
dir("build") {
sh "make storm"
}
}
stage('Build Tests') {
dir("build") {
sh "make -j 4 tests"
}
}
stage('Test') {
dir("build") {
sh "make check-verbose"
}
}
stage('Archive') {
archiveArtifacts artifacts: 'build/bin/*', onlyIfSuccessful: true
archiveArtifacts artifacts: 'build/lib/*', onlyIfSuccessful: true
archiveArtifacts artifacts: 'build/include/*', onlyIfSuccessful: true
}
}