ci: Discord notification for master build failrues
To make this not send 3 separate notifications for each platform we build for I've created a special job just for building `master` branch: https://ci.status.im/job/status-desktop/job/master/ For more details see: https://plugins.jenkins.io/discord-notifier/ Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
21fcd90918
commit
09d5d2a99a
|
@ -74,6 +74,28 @@ pipeline {
|
||||||
} }
|
} }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
post {
|
||||||
|
failure { script {
|
||||||
|
withCredentials([
|
||||||
|
string(
|
||||||
|
credentialsId: 'discord-status-desktop-webhook',
|
||||||
|
variable: 'DISCORD_WEBHOOK'
|
||||||
|
),
|
||||||
|
]) {
|
||||||
|
discordSend(
|
||||||
|
title: "${env.JOB_NAME}#${env.BUILD_NUMBER}",
|
||||||
|
description: """
|
||||||
|
CI Desktop build Failure!
|
||||||
|
Branch: `${GIT_BRANCH}`
|
||||||
|
Commit: `${GIT_COMMIT.take(8)}`
|
||||||
|
""",
|
||||||
|
link: env.BUILD_URL,
|
||||||
|
result: currentBuild.currentResult,
|
||||||
|
webhookURL: env.DISCORD_WEBHOOK
|
||||||
|
)
|
||||||
|
}
|
||||||
|
} }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Helper that makes PUBLISH default to 'false' unless:
|
/* Helper that makes PUBLISH default to 'false' unless:
|
||||||
|
|
Loading…
Reference in New Issue