pipeline { agent any stages { stage('Cloning git sumbodules') { steps { sh 'git submodule update --init --recursive' } } stage('Generate page with Hugo') { steps { sh 'hugo --verbose --cacheDir=${WORKSPACE}/hugo_cache' archiveArtifacts artifacts: 'public/**/*.*', fingerprint: true } } } }