pipeline { agent any stages { stage('Config') { steps { dir('build') { sh ''' cmake --version cmake -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug .. '''.stripIndent() } } } stage('Build') { steps { sh ''' cmake --build build --config Debug --target Test '''.stripIndent() } } stage('Run Test') { steps { sh ''' ./build/Test '''.stripIndent() } } } }