From 8e95f75a384548b632e3b4c0deed672180ae559f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 14 Feb 2024 16:33:44 +0100 Subject: [PATCH] chore(ci): drop build discord noficiation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit No longer necessary due to fleet decomissioning: https://github.com/status-im/infra-go-waku/issues/18 Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.docker | 45 ------------------------------------------- 1 file changed, 45 deletions(-) diff --git a/ci/Jenkinsfile.docker b/ci/Jenkinsfile.docker index f428bef7..0658364d 100644 --- a/ci/Jenkinsfile.docker +++ b/ci/Jenkinsfile.docker @@ -66,55 +66,10 @@ pipeline { } } post { - success { script { - discordNotify( - header: 'Go-Waku build successful!', - cred: 'discord-waku-deployments-webhook', - ) - } } always { cleanWs() } } } -def discordNotify(Map args=[:]) { - def opts = [ - header: args.header ?: 'Deployment successful!', - cred: args.cred ?: null, - ] - def repo = [ - url: GIT_URL.minus('.git'), - branch: GIT_BRANCH.minus('origin/'), - commit: GIT_COMMIT.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 - } - withCredentials([ - string( - credentialsId: opts.cred, - variable: 'DISCORD_WEBHOOK', - ), - ]) { - discordSend( - link: env.BUILD_URL, - result: currentBuild.currentResult, - webhookURL: env.DISCORD_WEBHOOK, - title: "${env.JOB_NAME}#${env.BUILD_NUMBER}", - description: """ - ${opts.header} - 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}) - By: [`${BUILD_USER_ID}`](${repo.url}/commits?author=${BUILD_USER_ID}) - """, - ) - } -} - def getDefaultImageTag(currentValue) { switch (env.JOB_BASE_NAME) { case 'docker-latest': return 'latest'