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