Commit d9cddd71 authored by Andrew Nicols's avatar Andrew Nicols

Correct var use

parent 30d173b9
......@@ -12,7 +12,7 @@ def call(body) {
$class: 'GitSCM',
branches: [
[
name: "*/${branch}"
name: "*/${config.branch}"
]
],
doGenerateSubmoduleConfigurations: false,
......@@ -32,26 +32,26 @@ def call(body) {
submoduleCfg: [],
userRemoteConfigs: [
[
url: "${repo}"
url: "${config.repo}"
]
]
]
)
}
stage("Run ${task}") {
stage("Run ${config.task}") {
withEnv([
"PHP_VERSION=${phpversion}",
"DBTYPE=${database}",
"TASK=${task}"
"PHP_VERSION=${config.phpversion}",
"DBTYPE=${config.database}",
"TASK=${config.task}"
]) {
sh '$HOME/scripts/runner/master/run.sh'
}
}
stage("Post") {
junit allowEmptyResults: true, testResults: '$BUILD_ID/*.junit/*.xml,$BUILD_ID/*.junit'
archiveArtifacts allowEmptyArchive: true, artifacts: '$BUILD_ID/**'
junit allowEmptyResults: true, testResults: '${env.BUILD_ID}/*.junit/*.xml,${env.BUILD_ID}/*.junit'
archiveArtifacts allowEmptyArchive: true, artifacts: '${env.BUILD_ID}/**'
cleanWs deleteDirs: true, notFailBuild: true
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment