Skip to content

Commit

Permalink
chore: moving post outside stages instead of pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
tlebon committed Dec 12, 2024
1 parent e951cda commit 5c9bd01
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ pipeline {
environment {
CREDENTIALS = credentials('GITHUB_TOKEN_WEB')
WIRE_BOT_SECRET = credentials('JENKINSBOT_WEBAPP_DEV')
webappApplicationPath = 'https:/wire-webapp-precommit.zinfra.io/'
webappApplicationPath = 'https://wire-webapp-precommit.zinfra.io/'
}

stages {
Expand Down Expand Up @@ -152,14 +152,15 @@ pipeline {
}
}
}
}
post {
success {
wireSend secret: env.WIRE_BOT_SECRET, message: "✅ **Build finished for branch '$GIT_BRANCH_WEBAPP'**\n${commit_msg}"
}
failure {
script {
wireSend(secret: env.WIRE_BOT_SECRET, message: "❌ **$BRANCH_NAME**\n[$CHANGE_TITLE](${CHANGE_URL})\nBuild aborted or failed! See [Github Actions](" + env.GITHUB_ACTION_URL + ')')
}
}

post {
success {
wireSend secret: env.WIRE_BOT_SECRET, message: "✅ **Build finished for branch '$GIT_BRANCH_WEBAPP'**\n${commit_msg}"
}
failure {
script {
wireSend(secret: env.WIRE_BOT_SECRET, message: "❌ **$BRANCH_NAME**\n[$CHANGE_TITLE](${CHANGE_URL})\nBuild aborted or failed! See [Github Actions](${env.GITHUB_ACTION_URL})")
}
}
}
}

0 comments on commit 5c9bd01

Please sign in to comment.