CustomMobs/Jenkinsfile
Teriuihi 89122cfa4b Update Gradle build command in Jenkinsfile
Revised the Gradle stage to use 'gradlew build' instead of 'gradlew shadowJar' for better compatibility. This change ensures the build process aligns with the default Gradle task and simplifies the Jenkins pipeline configuration.
2024-10-18 19:27:23 +02:00

26 lines
710 B
Groovy

pipeline {
agent any
stages {
stage('Gradle') {
steps {
sh 'gradlew build'
}
}
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
}
}
}
}