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