From 1e0990452373fa1c8a30a0f25a67a92d78b1f14c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 28 Sep 2022 14:40:06 +0200 Subject: [PATCH] ci: add diff link for previously deployed commit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.docker | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/ci/Jenkinsfile.docker b/ci/Jenkinsfile.docker index ada9d751..b0292b9a 100644 --- a/ci/Jenkinsfile.docker +++ b/ci/Jenkinsfile.docker @@ -67,13 +67,20 @@ pipeline { variable: 'DISCORD_WEBHOOK' ), ]) { + def repo = [ + url: 'https://github.com/status-im/go-waku', + branch: GIT_BRANCH.minus("origin/"), + commit: GIT_COMMIT.take(8), + prev: (env.GIT_PREVIOUS_SUCCESSFUL_COMMIT ?: env.GIT_PREVIOUS_COMMIT ?: 'master').take(8), + ] discordSend( title: "${env.JOB_NAME}#${env.BUILD_NUMBER}", description: """ Go-Waku deployment successful! - Image: [`${IMAGE_NAME}:${IMAGE_TAG}`](https://hub.docker.com/r/${IMAGE_NAME}/tags?page=1&name=${IMAGE_TAG}) - Branch: [`${GIT_BRANCH.minus("origin/")}`](https://github.com/status-im/nwaku/commits/${GIT_BRANCH.minus("origin/")}) - Commit: [`${GIT_COMMIT.take(8)}`](https://github.com/status-im/nwaku/commit/${GIT_COMMIT.take(8)}) + Image: [`${IMAGE_NAME}:${IMAGE_TAG}`](https://hub.docker.com/r/${IMAGE_NAME}/tags?name=${IMAGE_TAG}) + Branch: [`${repo.branch}`](${repo.url}/commits/${repo.branch}) + Commit: [`${repo.commit}`](${repo.url}/commit/${repo.commit}) + Diff: [`${repo.prev}...${repo.commit}`](${repo.url}/compare/${repo.prev}...${repo.commit}) """, link: env.BUILD_URL, result: currentBuild.currentResult,