mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
ci: add Discord notification for successful builds
This way teams can track what deployments happen when. Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
a0fd36393c
commit
235bfc7290
@ -64,6 +64,27 @@ pipeline {
|
||||
}
|
||||
} // stages
|
||||
post {
|
||||
success { script {
|
||||
withCredentials([
|
||||
string(
|
||||
credentialsId: 'discord-waku-deployments-webhook',
|
||||
variable: 'DISCORD_WEBHOOK'
|
||||
),
|
||||
]) {
|
||||
discordSend(
|
||||
title: "${env.JOB_NAME}#${env.BUILD_NUMBER}",
|
||||
description: """
|
||||
Nim-Waku deployment successful!
|
||||
Image: [`${IMAGE_NAME}:${IMAGE_TAG}`](https://hub.docker.com/r/${IMAGE_NAME}/tags?page=1&name=${IMAGE_TAG})
|
||||
Branch: [`${GIT_LOCAL_BRANCH}`](https://github.com/status-im/nwaku/commits/${GIT_LOCAL_BRANCH})
|
||||
Commit: [`${GIT_COMMIT.take(8)}`](https://github.com/status-im/nwaku/commit/${GIT_COMMIT.take(8)})
|
||||
""",
|
||||
link: env.BUILD_URL,
|
||||
result: currentBuild.currentResult,
|
||||
webhookURL: env.DISCORD_WEBHOOK
|
||||
)
|
||||
}
|
||||
} }
|
||||
always { sh 'docker image prune -f' }
|
||||
} // post
|
||||
} // pipeline
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user