deploy: af3bac2949e2ab8b18690ce4af89fcc8582f94c8

This commit is contained in:
jakubgs 2022-09-27 19:20:55 +00:00
parent b2756ba6f4
commit 88a122c618
2 changed files with 22 additions and 1 deletions

View File

@ -125,7 +125,7 @@ def versionWasChanged(version) {
script: "git diff --name-only origin/${env.CHANGE_TARGET}",
returnStdout: true
)
if (changes =~ "(?m)^(Makefile|waku.nimble|config.nims|vendor).*") {
if (changes =~ "(?m)^(Makefile|waku.nimble|config.nims|vendor|ci).*") {
return true
}
if (changes =~ "(?m)^(waku|tests|examples)/(${version}|common)/.*") {

View File

@ -64,6 +64,27 @@ pipeline {
}
} // stages
post {
success { script {
withCredentials([
string(
credentialsId: 'discord-waku-deployments-webhook',
variable: 'DISCORD_WEBHOOK'
),
]) {
discordSend(
title: "${env.JOB_NAME}#${env.BUILD_NUMBER}",
description: """
Nim-Waku deployment successful!
Image: [`${IMAGE_NAME}:${IMAGE_TAG}`](https://hub.docker.com/r/${IMAGE_NAME}/tags?page=1&name=${IMAGE_TAG})
Branch: [`${GIT_BRANCH.minus("origin/")}`](https://github.com/status-im/nwaku/commits/${GIT_BRANCH.minus("origin/")})
Commit: [`${GIT_COMMIT.take(8)}`](https://github.com/status-im/nwaku/commit/${GIT_COMMIT.take(8)})
""",
link: env.BUILD_URL,
result: currentBuild.currentResult,
webhookURL: env.DISCORD_WEBHOOK
)
}
} }
always { sh 'docker image prune -f' }
} // post
} // pipeline