Make variants of build all in one run
This commit is contained in:
parent
e76809830b
commit
75d8716a0a
1 changed files with 16 additions and 14 deletions
|
|
@ -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%'
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue