Skip to content

Commit

Permalink
Use a fixed WORK_ROOT
Browse files Browse the repository at this point in the history
  • Loading branch information
definite committed Feb 16, 2018
1 parent 44d6993 commit 52997cc
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions jenkins/maven-Jenkinsfile
Expand Up @@ -40,11 +40,10 @@ 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"
// dir(...) does not seem to populate nested variables well
String WORK_DIR = "/home/jenkins/zanata-work-root/${REPO_NAME}"
String WORK_ROOT = (env.WORK_ROOT) ?: "/home/jenkins/zanata-work-root"
String WORK_DIR = "${WORK_ROOT}/${REPO_NAME}"

String artifactId
String releaseVersion = null

ansiColor('xterm') {
pipelineLibraryScmGit = new ScmGit(env, steps, "https://${ORG_BASE}/zanata-pipeline-library")
Expand Down Expand Up @@ -99,7 +98,7 @@ timestamps {
// This checkout zanata-scripts
checkout scm

artifactId = sh(returnStdout: true,
String artifactId = sh(returnStdout: true,
script: "bash $WORKSPACE/zanata-functions run get_artifact_id ${REPO_NAME}"
).trim()

Expand Down Expand Up @@ -163,7 +162,6 @@ timestamps {
}

withEnv(envArray) {
String releaseVersion = null
String developmentVersion = null
String tagName = null

Expand Down

0 comments on commit 52997cc

Please sign in to comment.