pipeline { agent any options { buildDiscarder ( logRotator ( numToKeepStr: '5' ) ) } stages { stage ("Build") { agent { label 'linux' } steps { sh ''' #!/bin/bash git submodule update --init --recursive chmod +x build.sh ./build.sh ''' } post { always { archiveArtifacts artifacts: "Releases/*.zip" cleanWs() } } } } }