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' + } } }