Make variants of build all in one run

This commit is contained in:
Dan Hawkins 2017-12-19 15:43:11 +00:00
commit ff5b8f515e

View file

@ -20,16 +20,16 @@ def doBuild(apps) {
script {
env.destFolder = "${WORKSPACE}/export/${project}"
env.srcFile = "${WORKSPACE}/${exportpath}"
env.srcFileExpanded = "${srcFile}"
env.srcFileExpanded = srcFile.replace("-BUILDVARIANT-", "${build_variant}")
}
dir (env.destFolder) {
if (exportpath) {
echo "Copy ${srcFile} to ${destFolder}"
echo "Copy ${srcFileExpanded} to ${destFolder}"
if (isUnix()) {
sh 'cp \"${srcFile}\" ${destFolder}'
sh 'cp \"${srcFileExpanded}\" ${destFolder}'
}
else {
bat 'copy \"%srcFile%\" %destFolder%'
bat 'copy \"%srcFileExpanded%\" %destFolder%'
}
}
}