From f02a064408d4b8e5e9d20db3e1c833c15c680268 Mon Sep 17 00:00:00 2001 From: Denes Matetelki Date: Thu, 20 Dec 2018 14:45:22 +0100 Subject: [PATCH] post block in stage --- Jenkinsfile | 44 ++++++++++++++++++++------------------------ 1 file changed, 20 insertions(+), 24 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 1133afa..ea4874a 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -10,30 +10,26 @@ pipeline { steps { echo "flag: ${params.userFlag}" } - } - 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 { - echo "this is always printed at the end" + 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...' + } + } } - } + } + + }