Skip to content

Commit

Permalink
fix(ci): fix name of discord notify method
Browse files Browse the repository at this point in the history
Also use absolute path to load Groovy script.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Sep 27, 2023
1 parent d864db3 commit aaf10e0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ci/Jenkinsfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -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',
)
Expand Down
2 changes: 1 addition & 1 deletion ci/discord.groovy
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
def discordNotify(Map args=[:]) {
def void send(Map args=[:]) {
def opts = [
header: args.header ?: 'Deployment successful!',
cred: args.cred ?: null,
Expand Down

0 comments on commit aaf10e0

Please sign in to comment.