From b8c3e32fd63370cd15b646a3d0ccb20f3dab2321 Mon Sep 17 00:00:00 2001 From: Erki Date: Sun, 23 Jan 2022 18:48:39 +0200 Subject: [PATCH] yup --- Jenkinsfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index f24db61..9792dc8 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -6,16 +6,20 @@ pipeline { stages { stage("build && test") { steps { - echo 'Workspace: ${env.WORKSPACE}' + echo "Workspace: ${env.WORKSPACE}" sh 'ls' sh 'sudo pip3 install --upgrade conan==1.42.1' sh 'conan profile new default --detect' sh 'conan profile update settings.compiler.libcxx=libstdc++11 default' - sh 'mkdir -p build && cd build' - sh 'conan install .. --build=missing' - sh 'cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=ON' - sh 'ninja' - sh 'ctest . --output-on-failure' + sh 'mkdir -p build' + + dir("build") { + sh 'ls' + sh 'conan install .. --build=missing' + sh 'cmake .. -G "Ninja" -DCMAKE_BUILD_TYPE=Release -DWITH_TESTS=ON' + sh 'ninja' + sh 'ctest . --output-on-failure' + } } } }