CustomMobs/Jenkinsfile
2024-10-18 17:49:49 +02:00

26 lines
714 B
Groovy

pipeline {
agent any
stages {
stage('Gradle') {
steps {
sh 'gradlew shadowJar'
}
}
stage('Archive') {
steps {
archiveArtifacts artifacts: 'build/libs/', followSymlinks: false
}
}
stage('discord') {
when {
anyOf {
branch 'main'
branch 'master'
}
}
steps {
discordSend description: "Build: ${BUILD_NUMBER}", showChangeset: true, result: currentBuild.currentResult, title: currentBuild.fullProjectName, webhookURL: env.discordwebhook
}
}
}
}