From aaf10e08711bbc79a7a61f092a59efc61901e37d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Wed, 27 Sep 2023 16:30:20 +0200 Subject: [PATCH] fix(ci): fix name of discord notify method MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Also use absolute path to load Groovy script. Signed-off-by: Jakub SokoĊ‚owski --- ci/Jenkinsfile.release | 4 ++-- ci/discord.groovy | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ci/Jenkinsfile.release b/ci/Jenkinsfile.release index 61404b99d8..9a2a8afefd 100644 --- a/ci/Jenkinsfile.release +++ b/ci/Jenkinsfile.release @@ -93,8 +93,8 @@ pipeline { post { success { script { - def discord = load 'ci/discord.groovy' - discord.notify( + def discord = load "${WORKSPACE}/ci/discord.groovy" + discord.send( header: 'Nim-Waku deployment successful!', cred: 'discord-waku-deployments-webhook', ) diff --git a/ci/discord.groovy b/ci/discord.groovy index f55ddaefc2..ee2f726b3d 100644 --- a/ci/discord.groovy +++ b/ci/discord.groovy @@ -1,4 +1,4 @@ -def discordNotify(Map args=[:]) { +def void send(Map args=[:]) { def opts = [ header: args.header ?: 'Deployment successful!', cred: args.cred ?: null,