From 4ca1d24bbe6c9ffa71d35d893cdcc2408b6b7631 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 20 Oct 2021 18:28:21 +0200 Subject: [PATCH] fixed deploy not being found --- Jenkinsfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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' } } }