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 {
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',
)

View File

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