您最多选择25个主题
主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
44 行
903 B
44 行
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
|
|
}
|
|
}
|