def DartArchiveUploadUpdateSite(local_path): namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) gsutil = bot_utils.GSUtil() for revision in [REVISION, 'latest']: update_site_dir = namer.editor_eclipse_update_directory(revision) try: gsutil.remove(update_site_dir, recursive=True) except: # Ignore this, in the general case there is nothing. pass gsutil.upload(local_path, update_site_dir, recursive=True, public=True)
def DartArchiveUploadUpdateSite(local_path): # TODO(kustermann): We don't archive trunk builds to gs://dart-archive/ # Remove this once the channel transition is done. if CHANNEL == 'trunk': return namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW) gsutil = bot_utils.GSUtil() for revision in [REVISION, 'latest']: update_site_dir = namer.editor_eclipse_update_directory(revision) try: gsutil.remove(update_site_dir, recursive=True) except: # Ignore this, in the general case there is nothing. pass gsutil.upload(local_path, update_site_dir, recursive=True, public=True)