From 7471da85f7dc8da2f5cc15b0027389940f0af936 Mon Sep 17 00:00:00 2001 From: Joshua Arulsamy Date: Mon, 10 Aug 2020 02:25:48 -0600 Subject: [PATCH] :sparkles: Seperate field for pushing package --- Jenkinsfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 3968490..e844538 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -52,11 +52,16 @@ pipeline { ./deploy/build.sh ''' } - post { - always { - sh './deploy/push.sh' + } + stage('Push Image') { + when { + expression { + currentBuild.result == 'SUCCESS' } } + steps { + sh './deploy/push.sh' + } } }