From 7cc8c59d0b094996a66866a4e204f761e0ad7025 Mon Sep 17 00:00:00 2001 From: keita Date: Thu, 25 Feb 2021 17:47:43 +0900 Subject: [PATCH] manage Jenkinsfile(#57) --- Jenkinsfile | 58 +++++++++++++++++++++++++++-------------------------- 1 file changed, 30 insertions(+), 28 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index dd03115..eade40c 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -4,41 +4,43 @@ pipeline { } stages{ - parallel{ - stage("doxygen"){ - steps{ - sh 'doxygen' - } - } + stage("parallel execution"){ + parallel{ + stage("doxygen"){ + steps{ + sh 'doxygen' + } + } - stage("validation"){ - sh 'tools/validate/includeGuard.sh' - } + stage("validation"){ + sh 'tools/validate/includeGuard.sh' + } - stages{ - stage("prepare"){ - steps{ - sh ''' - mkdir build - cd $_ - cmake .. -G ninja - ''' + stages{ + stage("prepare"){ + steps{ + sh ''' + mkdir build + cd $_ + cmake .. -G ninja + ''' + } + } + + stage("build"){ + sh ''' + cd build ninja + ''' + } } } + } - stage("build"){ - sh ''' - cd build ninja - ''' + stage("upload artifact"){ + steps{ + archiveArtifacts allowEmptyArchive: true, artifacts: 'help/**/*.*', onlyIfSuccessful: true } } - } - - stage("upload artifact"){ - steps{ - archiveArtifacts allowEmptyArchive: true, artifacts: 'help/**/*.*', onlyIfSuccessful: true - } - } } }