Archive SDK by git hash in addition to version number

This is needed for buildbot testers to download the SDK instead of building it.

BUG=
R=kustermann@google.com

Review URL: https://codereview.chromium.org/2218723003 .
This commit is contained in:
William Hesse 2016-08-05 13:38:55 +02:00
parent 7a12b0cb60
commit 8473409b9c

View file

@ -81,8 +81,9 @@ def CreateUploadSDKZips():
def DartArchiveUploadSDKs(system, sdk32_zip, sdk64_zip):
namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW)
revision = utils.GetArchiveVersion()
for revision in [revision, 'latest']:
git_number = utils.GetArchiveVersion()
git_hash = 'hash/%s' % utils.GetGitRevision()
for revision in [git_number, git_hash, 'latest']:
path32 = namer.sdk_zipfilepath(revision, system, 'ia32', 'release')
path64 = namer.sdk_zipfilepath(revision, system, 'x64', 'release')
DartArchiveFile(sdk32_zip, path32, checksum_files=True)