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