From 016f601c718bb880393bf80854464a66b0f65523 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Thu, 20 Dec 2018 14:34:40 +0100 Subject: [PATCH] post actions --- Jenkinsfile | 24 +++++++++++++++++++----- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3ce150c..1133afa 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -11,11 +11,25 @@ pipeline { echo "flag: ${params.userFlag}" } } - post { - always { - echo "this is always printed at the end of this stage" - } - } + post { + always { + echo 'One way or another, I have finished' + } + success { + echo 'I succeeeded!' + } + unstable { + echo 'I am unstable :/' + } + failure { + echo 'I failed :(' + } + changed { + echo 'Things were different before...' + } + } + + } post { always {