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

Unified Diff: archive_build.sh

Issue 6512004: Print out full path to archive url. (Closed) Base URL: http://git.chromium.org/git/crosutils.git@master
Patch Set: Forgot the index Created 9 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: archive_build.sh
diff --git a/archive_build.sh b/archive_build.sh
index e4ea0f2ab09aa121b4c3d4d14b44a2446984528c..f1c75c7b30b4dc2973e3f8f3a91c80eabbb7278d 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})..."
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698