Skip to content

Commit

Permalink
WORK_ROOT is now a subdir of WORKSPACE
Browse files Browse the repository at this point in the history
  • Loading branch information
definite committed Feb 16, 2018
1 parent 53b8f06 commit de9b502
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jenkins/maven-Jenkinsfile
Expand Up @@ -22,7 +22,7 @@ timestamps {
String PROJ_BASE = (env.PROJ_BASE) ?: "${ORG_BASE}/${REPO_NAME}"
String PROJ_BRANCH = (env.PROJ_BRANCH) ?: 'release'
String ZANATA_SCRIPTS_BRANCH = (env.ZANATA_SCRIPTS_BRANCH) ?: 'master'
String WORK_ROOT = (env.WORK_ROOT) ?: "${env.JENKINS_HOME}/zanata-work-root"
String WORK_ROOT = (env.WORK_ROOT) ?: "${env.WORKSPACE}/zanata-work-root"
String WORK_DIR = "${WORK_ROOT}/${REPO_NAME}"

def envArray = new ArrayList()
Expand Down Expand Up @@ -121,7 +121,7 @@ timestamps {
// git branch: PROJ_BRANCH, changelog: false, credentialsId: 'zanata-jenkins', poll: false, url: "https://${PROJ_BASE}.git"

checkout changelog: false, poll: false, scm:
[$class: 'GitSCM', branches: [[name: "*/release"]],
[$class: 'GitSCM', branches: [[name: "*/${PROJ_BRANCH}"]],
doGenerateSubmoduleConfigurations: false,
extensions: [], submoduleCfg: [],
userRemoteConfigs: [[credentialsId: 'zanata-jenkins', url: "http://${ORG_BASE}/${REPO_NAME}"]]
Expand Down

0 comments on commit de9b502

Please sign in to comment.