Make variants of build all in one run

This commit is contained in:
Dan Hawkins 2017-12-19 16:30:18 +00:00
commit 75d8716a0a

View file

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