fixed deploy not being found

This commit is contained in:
2021-10-20 18:28:21 +02:00
parent 67da621074
commit 4ca1d24bbe

8
Jenkinsfile vendored
View File

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