Add build switch to perform clean builds
This commit is contained in:
parent
305ae709aa
commit
8f69abb656
1 changed files with 10 additions and 4 deletions
|
|
@ -31,17 +31,23 @@ def doExport(exportfolder, exportpathlist, build_variant = "") {
|
|||
// Build and export files
|
||||
def doBuild(apps, exportfolder = "${WORKSPACE}/bin") {
|
||||
for (appInfo in apps ) {
|
||||
(build, project, variants, exportpathlist) = appInfo
|
||||
(build, cleanbuild, project, variants, exportpathlist) = appInfo
|
||||
if (build) {
|
||||
if (cleanbuild) {
|
||||
buildtype = "-cleanBuild"
|
||||
}
|
||||
else {
|
||||
buildtype = "-build"
|
||||
}
|
||||
for (build_variant in variants) {
|
||||
retry(3) { // Eclipse occasionally raises exceptions (rather than the builds failing)
|
||||
echo "Build command: ${BUILD_COMMAND} ${buildtype} \"${project}/${build_variant}\""
|
||||
if (isUnix()) {
|
||||
echo "Build command: ${BUILD_COMMAND} -build \"${project}/${build_variant}\""
|
||||
sh "${BUILD_COMMAND} -build \"${project}/${build_variant}\""
|
||||
sh "${BUILD_COMMAND} ${buildtype} \"${project}/${build_variant}\""
|
||||
}
|
||||
else {
|
||||
bat """
|
||||
"%BUILD_COMMAND%" -build "${project}\\${build_variant}"
|
||||
"%BUILD_COMMAND%" ${buildtype} "${project}\\${build_variant}"
|
||||
"""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue