This repository has been archived on 2025-08-13. You can view files and clone it, but cannot push or open issues or pull requests.
Files
sdlink-core/Jenkinsfile

37 lines
1.0 KiB
Plaintext
Raw Normal View History

2023-05-21 19:58:15 +02:00
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}"
}
}
}