CI: Add Rocket.Chat release notification
Pyxis/fieldnotes/pipeline/head This commit has test failures Details

This commit is contained in:
wpetit 2020-11-24 10:01:41 +01:00
parent 6179b094d2
commit 63b3774309
1 changed files with 18 additions and 11 deletions

29
Jenkinsfile vendored
View File

@ -115,23 +115,30 @@ pipeline {
def versionClassifier = versionClassifier()
def version = "${versionCode} (${versionClassifier})"
def changelog = getChangelogSinceLastNotFailedCommit()
def message = """
Une nouvelle version de Fieldnotes est disponible sur le dépôt F-Droid (staging).
Changelog:
${changelog}
Projet: ${env.GIT_URL}
Branche: ${env.GIT_BRANCH}
Commit: ${env.GIT_COMMIT}
""".stripIndent()
withCredentials([
string(credentialsId: 'DEPLOY_NOTIFICATION_RECIPIENTS', variable: 'DEPLOY_NOTIFICATION_RECIPIENTS'),
]) {
mail (
to: "${DEPLOY_NOTIFICATION_RECIPIENTS}",
subject: "[Pyxis/Fieldnotes][Staging] Nouvelle version: ${version}",
body: """
Une nouvelle version de Fieldnotes est disponible sur le dépôt F-Droid.
Changelog:
${changelog}
Projet: ${env.GIT_URL}
Branche: ${env.GIT_BRANCH}
Commit: ${env.GIT_COMMIT}
""".stripIndent(),
body: message
)
rocketSend (
channel: "#cadoles-pyxis",
emoji: ':cadoles:',
message: "@all\n" + message,
rawMessage: true
)
}
}