Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(943)

Unified Diff: build/android/buildbot/buildbot_functions.sh

Issue 11175016: Selective build clobbering feature (landmines.py and android build scripts). (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Total rewrite :). Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | build/gyp_chromium » ('j') | build/gyp_helper.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/buildbot/buildbot_functions.sh
diff --git a/build/android/buildbot/buildbot_functions.sh b/build/android/buildbot/buildbot_functions.sh
index 25e89c40a82f98eaf69a4cf47b791dd935c712bd..f55729c809a1976a27b6225ef4b341621b3ccd4e 100755
--- a/build/android/buildbot/buildbot_functions.sh
+++ b/build/android/buildbot/buildbot_functions.sh
@@ -47,20 +47,31 @@ function bb_baseline_setup {
shift
cd $SRC_ROOT
- if [[ $BUILDBOT_CLOBBER ]]; then
+ echo "@@@BUILD_STEP Parse args@@@"
+ bb_parse_args "$@"
+
+ local out_path="${SRC_ROOT}/out/${BUILDTYPE}"
+ local trigger_path="$out_path/.landmines_triggered"
+
+ if [[ $BUILDBOT_CLOBBER || -f "$trigger_path" ]]; then
echo "@@@BUILD_STEP Clobber@@@"
+
+ if [[ -f "$trigger_path" ]]; then
+ echo "Clobbering due to triggered landmines: "
+ cat "$trigger_path"
+ fi
+
# Sdk key expires, delete android folder.
# crbug.com/145860
rm -rf ~/.android
- rm -rf "${SRC_ROOT}"/out
- if [ -e "${SRC_ROOT}"/out ] ; then
- echo "Clobber appeared to fail? ${SRC_ROOT}/out still exists."
+ rm -rf "$out_path"
+ if [ -e "$out_path" ] ; then
+ echo "Clobber appeared to fail? $out_path still exists."
echo "@@@STEP_WARNINGS@@@"
fi
fi
echo "@@@BUILD_STEP Environment setup@@@"
- bb_parse_args "$@"
local BUILDTOOL=$(bb_get_json_prop "$FACTORY_PROPERTIES" buildtool)
if [[ $BUILDTOOL = ninja ]]; then
« no previous file with comments | « DEPS ('k') | build/gyp_chromium » ('j') | build/gyp_helper.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698