コード例 #1
0
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)
コード例 #2
0
ファイル: build.py プロジェクト: abetss/bleeding_edge
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)
コード例 #3
0
ファイル: build.py プロジェクト: hangstrap/bleeding_edge
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)