diff --git a/Jenkinsfile b/Jenkinsfile index 0974529..820cae6 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -26,6 +26,9 @@ pipeline { stage('Deploy') { when { branch 'master' + expression { + currentBuild.result == null || currentBuild.result == 'SUCCESS' + } } environment { FTP_USERNAME = credentials('csgowtf-deploy-user') @@ -37,12 +40,15 @@ pipeline { stage('Deploy Dev') { when { branch 'dev' + expression { + currentBuild.result == null || currentBuild.result == 'SUCCESS' + } } environment { FTP_USERNAME = credentials('csgowtf-deploy-user-dev') } steps { - sh 'deploy.sh' + sh '${env.WORKSPACE}/deploy.sh' } } }