fix(ci): fix name of discord notify method

Also use absolute path to load Groovy script.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2023-09-27 16:30:20 +02:00
parent d864db3fb5
commit aaf10e0871
No known key found for this signature in database
GPG Key ID: FE65CD384D5BF7B4
2 changed files with 3 additions and 3 deletions

View File

@ -93,8 +93,8 @@ pipeline {
post { post {
success { script { success { script {
def discord = load 'ci/discord.groovy' def discord = load "${WORKSPACE}/ci/discord.groovy"
discord.notify( discord.send(
header: 'Nim-Waku deployment successful!', header: 'Nim-Waku deployment successful!',
cred: 'discord-waku-deployments-webhook', cred: 'discord-waku-deployments-webhook',
) )

View File

@ -1,4 +1,4 @@
def discordNotify(Map args=[:]) { def void send(Map args=[:]) {
def opts = [ def opts = [
header: args.header ?: 'Deployment successful!', header: args.header ?: 'Deployment successful!',
cred: args.cred ?: null, cred: args.cred ?: null,