37 lines
1.0 KiB
Groovy
37 lines
1.0 KiB
Groovy
pipeline {
|
|
agent {
|
|
label "master"
|
|
}
|
|
tools {
|
|
jdk "JAVA17"
|
|
}
|
|
stages {
|
|
stage("Notify Discord") {
|
|
steps {
|
|
discordSend webhookURL: env.FDD_WH_ADMIN,
|
|
title: "Build Started: SDLink-Core #${BUILD_NUMBER}",
|
|
link: env.BUILD_URL,
|
|
description: "Build: [${BUILD_NUMBER}](${env.BUILD_URL})"
|
|
}
|
|
}
|
|
stage("Publish") {
|
|
steps {
|
|
sh "chmod +x ./gradlew"
|
|
sh "./gradlew clean spotlessCheck publish"
|
|
}
|
|
}
|
|
}
|
|
post {
|
|
always {
|
|
sh "./gradlew --stop"
|
|
deleteDir()
|
|
|
|
discordSend webhookURL: env.FDD_WH_ADMIN,
|
|
title: "Build Finished: SDLink-Core #${BUILD_NUMBER}",
|
|
link: env.BUILD_URL,
|
|
result: currentBuild.currentResult,
|
|
description: "Build: [${BUILD_NUMBER}](${env.BUILD_URL})\nStatus: ${currentBuild.currentResult}"
|
|
}
|
|
}
|
|
}
|