mirror of https://github.com/waku-org/nwaku.git
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:
parent
d864db3fb5
commit
aaf10e0871
|
@ -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',
|
||||||
)
|
)
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue