CustomMobs/Jenkinsfile
Teriuihi 2127933b0a Update Gradle build command in Jenkinsfile
Changed the Gradle build step to use 'bash' for executing the gradlew script. This ensures compatibility across different environments where the script might need a specific shell interpreter.
2024-10-18 19:30:54 +02:00

26 lines
715 B
Groovy

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