pipeline { agent any options { buildDiscarder ( logRotator ( numToKeepStr: '5' ) ) } stages { stage ("Build Prep") { agent { label 'linux' } steps { sh ''' #!/bin/bash git submodule update --init --recursive update_vs_dotgame chmod +x build.sh ''' } } stage ("Build & Archive") { agent { label 'linux' } steps { sh ''' #!/bin/bash ./build.sh ''' } post { always { archiveArtifacts artifacts: "Releases/*.zip" cleanWs() script { if(env.DISCORD_URL != '') { discordSend customAvatarUrl: '', customFile: '', customUsername: '', description: 'This is an automated build of the modification for Vintage Story.', enableArtifactsList: true, footer: '', image: '', link: '', result: '', scmWebUrl: '', thumbnail: '', title: 'Vintage Storage Build Results', webhookURL: env.DISCORD_URL } } } } } } }