Skip to content

Commit

Permalink
chore(ci): reuse discord send function from library
Browse files Browse the repository at this point in the history
No need to keep an almost identical copy here.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
  • Loading branch information
jakubgs committed Feb 14, 2024
1 parent 3903f13 commit 1151d50
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 42 deletions.
7 changes: 5 additions & 2 deletions ci/Jenkinsfile.release
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
#!/usr/bin/env groovy
library 'status-jenkins-lib@v1.8.6'

pipeline {
agent { label 'linux' }

Expand Down Expand Up @@ -98,10 +101,10 @@ pipeline {

post {
success { script {
def discord = load "${WORKSPACE}/ci/discord.groovy"
discord.send(
header: 'Nim-Waku deployment successful!',
header: '**Nim-Waku deployment successful!**',
cred: 'discord-waku-deployments-webhook',
descPrefix: "Image: [`${IMAGE_NAME}:${IMAGE_TAG}`](https://hub.docker.com/r/${IMAGE_NAME}/tags?name=${IMAGE_TAG})"
)
} }
always { sh 'docker image prune -f' }
Expand Down
40 changes: 0 additions & 40 deletions ci/discord.groovy

This file was deleted.

0 comments on commit 1151d50

Please sign in to comment.