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' + } } } }