mirror of
https://github.com/waku-org/nwaku.git
synced 2025-01-14 08:57:14 +00:00
ci: add username and email to build notifications
Makes it easier to identify who to talk to about a deployment. This depends on the following plugin being installed: https://plugins.jenkins.io/build-user-vars-plugin/ Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
5fbc537cbf
commit
b9a84af5c2
@ -77,6 +77,9 @@ pipeline {
|
|||||||
commit: GIT_COMMIT.take(8),
|
commit: GIT_COMMIT.take(8),
|
||||||
prev: (env.GIT_PREVIOUS_SUCCESSFUL_COMMIT ?: env.GIT_PREVIOUS_COMMIT ?: 'master').take(8),
|
prev: (env.GIT_PREVIOUS_SUCCESSFUL_COMMIT ?: env.GIT_PREVIOUS_COMMIT ?: 'master').take(8),
|
||||||
]
|
]
|
||||||
|
wrap([$class: 'BuildUser']) {
|
||||||
|
BUILD_USER_ID = env.BUILD_USER_ID
|
||||||
|
}
|
||||||
discordSend(
|
discordSend(
|
||||||
title: "${env.JOB_NAME}#${env.BUILD_NUMBER}",
|
title: "${env.JOB_NAME}#${env.BUILD_NUMBER}",
|
||||||
description: """
|
description: """
|
||||||
@ -85,6 +88,7 @@ pipeline {
|
|||||||
Branch: [`${repo.branch}`](${repo.url}/commits/${repo.branch})
|
Branch: [`${repo.branch}`](${repo.url}/commits/${repo.branch})
|
||||||
Commit: [`${repo.commit}`](${repo.url}/commit/${repo.commit})
|
Commit: [`${repo.commit}`](${repo.url}/commit/${repo.commit})
|
||||||
Diff: [`${repo.prev}...${repo.commit}`](${repo.url}/compare/${repo.prev}...${repo.commit})
|
Diff: [`${repo.prev}...${repo.commit}`](${repo.url}/compare/${repo.prev}...${repo.commit})
|
||||||
|
By: [`${BUILD_USER_ID}`](${repo.url}/commits?author=${BUILD_USER_ID})
|
||||||
""",
|
""",
|
||||||
link: env.BUILD_URL,
|
link: env.BUILD_URL,
|
||||||
result: currentBuild.currentResult,
|
result: currentBuild.currentResult,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user