CI: Add Rocket.Chat release notification
Pyxis/fieldnotes/pipeline/head This commit has test failures
Details
Pyxis/fieldnotes/pipeline/head This commit has test failures
Details
This commit is contained in:
parent
6179b094d2
commit
63b3774309
|
@ -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
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue