HMBXR5601-143 - Handle projects that aren't built but do provide binaries
This commit is contained in:
parent
9a8a5d5be9
commit
9f58f571b3
1 changed files with 5 additions and 2 deletions
|
|
@ -3,20 +3,23 @@ def doExport(exportfolder, exportpathlist, build_variant = "") {
|
|||
for (exportpath in exportpathlist) {
|
||||
echo "Export path at: ${exportpath}"
|
||||
script {
|
||||
echo "Build variant is ${build_variant}"
|
||||
if (build_variant) {
|
||||
echo "Build variant is ${build_variant}"
|
||||
env.destFolder = "${exportfolder}/${build_variant}/${project}"
|
||||
env.srcFile = "${WORKSPACE}/${exportpath}"
|
||||
env.srcFileExpanded = srcFile.replace("-BUILDVARIANT-", "${build_variant}")
|
||||
}
|
||||
else {
|
||||
echo "No build variant"
|
||||
env.destFolder = "${exportfolder}/${project}"
|
||||
env.srcFileExpanded = "${WORKSPACE}/${exportpath}"
|
||||
}
|
||||
}
|
||||
dir (env.destFolder) {
|
||||
echo 'Copy \"${srcFileExpanded}\" to \"${destFolder}\"'
|
||||
echo "Copy \"${srcFileExpanded}\" to \"${destFolder}\""
|
||||
if (isUnix()) {
|
||||
sh "cp -v ${srcFileExpanded} \"${destFolder}\""
|
||||
sh "cp -v \"${srcFileExpanded}\" \"${destFolder}\""
|
||||
}
|
||||
else {
|
||||
bat 'copy \"%srcFileExpanded%\" \"%destFolder%\"'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue