Only send notice when triggered by timer.

This commit is contained in:
Harrison Deng 2022-05-21 03:11:00 -05:00
parent 75bfb27c09
commit c8f40f417d

1
Jenkinsfile vendored
View File

@ -13,6 +13,7 @@ pipeline {
stage("notify") {
when {
branch "**/master"
triggeredBy 'TimerTrigger'
}
steps {
discordSend description: 'RS Jenkins has begun building the latest live (master branch) version of the server. This means the live Minecraft server **will shutdown** once the build has reached the deployment stage. Please be ready for this! For information on **what has changed**, **estimates of when reboot will occur** and **current progress**, checkout the build link.', footer: '', image: '', link: 'env.BUILD_URL', result: currentBuild.currentResult, scmWebUrl: '', thumbnail: '', title: 'RS Jenkins - ${env.JOB_NAME}: Build starting.', webhookURL: 'https://discord.com/api/webhooks/977367178884046919/LCJ_ngdNG1zo6Ak4CmzzUZbYD92LPUNn_mQO8IhwxoAVmswJo8p950qLFoQUck7LmIkf'