fixed deploy not being found
Some checks failed
CSGOWTF/csgowtf/pipeline/head There was a failure building this commit
Some checks failed
CSGOWTF/csgowtf/pipeline/head There was a failure building this commit
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user