pipeline { agent any stages { stage('Cloning git sumbodules') { steps { sh 'git submodule update --init --recursive' } } stage('Compile') { steps { sh 'cmake .' sh 'make -j 4' } } } }