pipeline { agent any stages { stage('Gradle') { steps { sh './zip.sh' } } stage('Archive') { steps { archiveArtifacts artifacts: 'Galaxy.zip', followSymlinks: false } } stage('discord') { steps { discordSend description: "Build: ${BUILD_NUMBER}", showChangeset: true, result: currentBuild.currentResult, title: currentBuild.fullProjectName, webhookURL: env.discordwebhook } } } }