mirror of https://github.com/waku-org/nwaku.git
ci: add diff link for previously deployed commit
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
3b7d6f4a1b
commit
cc037cc749
|
@ -71,13 +71,20 @@ pipeline {
|
||||||
variable: 'DISCORD_WEBHOOK'
|
variable: 'DISCORD_WEBHOOK'
|
||||||
),
|
),
|
||||||
]) {
|
]) {
|
||||||
|
def repo = [
|
||||||
|
url: 'https://github.com/status-im/nwaku',
|
||||||
|
branch: GIT_BRANCH.minus("origin/"),
|
||||||
|
commit: GIT_COMMIT.take(8),
|
||||||
|
prev: (env.GIT_PREVIOUS_SUCCESSFUL_COMMIT ?: env.GIT_PREVIOUS_COMMIT ?: 'master').take(8),
|
||||||
|
]
|
||||||
discordSend(
|
discordSend(
|
||||||
title: "${env.JOB_NAME}#${env.BUILD_NUMBER}",
|
title: "${env.JOB_NAME}#${env.BUILD_NUMBER}",
|
||||||
description: """
|
description: """
|
||||||
Nim-Waku deployment successful!
|
Nim-Waku deployment successful!
|
||||||
Image: [`${IMAGE_NAME}:${IMAGE_TAG}`](https://hub.docker.com/r/${IMAGE_NAME}/tags?page=1&name=${IMAGE_TAG})
|
Image: [`${IMAGE_NAME}:${IMAGE_TAG}`](https://hub.docker.com/r/${IMAGE_NAME}/tags?name=${IMAGE_TAG})
|
||||||
Branch: [`${GIT_BRANCH.minus("origin/")}`](https://github.com/status-im/nwaku/commits/${GIT_BRANCH.minus("origin/")})
|
Branch: [`${repo.branch}`](${repo.url}/commits/${repo.branch})
|
||||||
Commit: [`${GIT_COMMIT.take(8)}`](https://github.com/status-im/nwaku/commit/${GIT_COMMIT.take(8)})
|
Commit: [`${repo.commit}`](${repo.url}/commit/${repo.commit})
|
||||||
|
Diff: [`${repo.prev}...${repo.commit}`](${repo.url}/compare/${repo.prev}...${repo.commit})
|
||||||
""",
|
""",
|
||||||
link: env.BUILD_URL,
|
link: env.BUILD_URL,
|
||||||
result: currentBuild.currentResult,
|
result: currentBuild.currentResult,
|
||||||
|
|
Loading…
Reference in New Issue