manage Jenkinsfile(#57)

This commit is contained in:
keita
2021-02-25 17:47:43 +09:00
parent 1bfc305662
commit 7cc8c59d0b
Vendored
+30 -28
View File
@@ -4,41 +4,43 @@ pipeline {
} }
stages{ stages{
parallel{ stage("parallel execution"){
stage("doxygen"){ parallel{
steps{ stage("doxygen"){
sh 'doxygen' steps{
} sh 'doxygen'
} }
}
stage("validation"){ stage("validation"){
sh 'tools/validate/includeGuard.sh' sh 'tools/validate/includeGuard.sh'
} }
stages{ stages{
stage("prepare"){ stage("prepare"){
steps{ steps{
sh ''' sh '''
mkdir build mkdir build
cd $_ cd $_
cmake .. -G ninja cmake .. -G ninja
''' '''
}
}
stage("build"){
sh '''
cd build ninja
'''
}
} }
} }
}
stage("build"){ stage("upload artifact"){
sh ''' steps{
cd build ninja archiveArtifacts allowEmptyArchive: true, artifacts: 'help/**/*.*', onlyIfSuccessful: true
'''
} }
} }
}
stage("upload artifact"){
steps{
archiveArtifacts allowEmptyArchive: true, artifacts: 'help/**/*.*', onlyIfSuccessful: true
}
}
} }
} }