pipeline { agent any stages { stage('Gradle') { steps { sh 'npm install --force --legacy-peer-dep' sh 'npm run build' } } stage('Archive') { steps { archiveArtifacts artifacts: 'build/**', followSymlinks: false } } stage('discord') { steps { discordSend description: "Build: ${BUILD_NUMBER}", showChangeset: true, result: currentBuild.currentResult, title: currentBuild.fullProjectName, webhookURL: env.discordwebhook } } } }