Update Jenkinsfile
This commit is contained in:
parent
f694ad625e
commit
fdb9893a3a
|
|
@ -79,26 +79,26 @@ pipeline {
|
|||
steps {
|
||||
script {
|
||||
def reviewBranches = [
|
||||
'origin/review',
|
||||
'review'
|
||||
'origin/lighthouse',
|
||||
'lighthouse'
|
||||
]
|
||||
|
||||
def devBranches = [
|
||||
'origin/dev-ci',
|
||||
'dev-ci'
|
||||
'origin/candlelight',
|
||||
'candlelight'
|
||||
]
|
||||
|
||||
def masterBranches = [
|
||||
'origin/master',
|
||||
'master'
|
||||
'origin/lighthouse',
|
||||
'lighthouse'
|
||||
]
|
||||
|
||||
def targetDir
|
||||
|
||||
if (reviewBranches.contains(env.BRANCH_NAME)) {
|
||||
targetDir = "${DEPLOY_DIR}_review"
|
||||
targetDir = "${DEPLOY_DIR}_lighthouse"
|
||||
} else if (devBranches.contains(env.BRANCH_NAME)) {
|
||||
targetDir = "${DEPLOY_DIR}_dev"
|
||||
targetDir = "${DEPLOY_DIR}_candlelight"
|
||||
} else if (masterBranches.contains(env.BRANCH_NAME)) {
|
||||
targetDir = DEPLOY_DIR
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue