From 89e9244910f67d83524a12a427ca7289fb0be289 Mon Sep 17 00:00:00 2001 From: Chris Sosa Date: Fri, 11 Feb 2011 17:42:55 -0800 Subject: [PATCH] Print out full path to archive url. Change-Id: I6df0244d786794107c7d166c882c3585837c48a5 BUG=chromium-os:8364 TEST=Visually Review URL: http://codereview.chromium.org/6512004 --- archive_build.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/archive_build.sh b/archive_build.sh index e4ea0f2ab0..f1c75c7b30 100755 --- a/archive_build.sh +++ b/archive_build.sh @@ -314,6 +314,13 @@ if [ $FLAGS_factory_test_mod -eq $FLAGS_TRUE ] || \ fi gsutil_archive "${FLAGS_to}/LATEST" "LATEST" +if [ -n "${FLAGS_gsutil_archive}" ]; then + FULL_INDEX_PATH="${FLAGS_gsutil_archive}/${LAST_CHANGE}/_index.html" + RELATIVE_ARCHIVE_URL_PATH="${FULL_INDEX_PATH#gs://}" + echo "CROS_ARCHIVE_URL=\ +https://sandbox.google.com/storage/${RELATIVE_ARCHIVE_URL_PATH}" +fi + # Purge old builds if necessary if [ $FLAGS_keep_max -gt 0 ]; then echo "Deleting old builds (all but the newest ${FLAGS_keep_max})..."