Swapped success and filure messages
Some checks failed
ci-tests/jenkins-template/pipeline/head There was a failure building this commit
Some checks failed
ci-tests/jenkins-template/pipeline/head There was a failure building this commit
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -39,11 +39,11 @@ pipeline {
|
||||
}
|
||||
success {
|
||||
echo "This will run only upon success"
|
||||
telegramSend(message: '[❌] Failed to build 😱', chatId: "${env.TELE_CHAT_ID}")
|
||||
telegramSend(message: '[✅] Build Is a success', chatId: "${env.TELE_CHAT_ID}")
|
||||
}
|
||||
failure {
|
||||
echo "This will run/show only if failed"
|
||||
telegramSend(message: '[✅] Build Is a success', chatId: "${env.TELE_CHAT_ID}")
|
||||
telegramSend(message: '[❌] Failed to build 😱', chatId: "${env.TELE_CHAT_ID}")
|
||||
}
|
||||
unstable {
|
||||
echo "This will show only if the was marked as unstable!"
|
||||
|
||||
Reference in New Issue
Block a user