mirror of
https://github.com/dart-lang/sdk
synced 2024-09-15 22:00:09 +00:00
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:
parent
7a12b0cb60
commit
8473409b9c
|
@ -81,8 +81,9 @@ def CreateUploadSDKZips():
|
||||||
|
|
||||||
def DartArchiveUploadSDKs(system, sdk32_zip, sdk64_zip):
|
def DartArchiveUploadSDKs(system, sdk32_zip, sdk64_zip):
|
||||||
namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW)
|
namer = bot_utils.GCSNamer(CHANNEL, bot_utils.ReleaseType.RAW)
|
||||||
revision = utils.GetArchiveVersion()
|
git_number = utils.GetArchiveVersion()
|
||||||
for revision in [revision, 'latest']:
|
git_hash = 'hash/%s' % utils.GetGitRevision()
|
||||||
|
for revision in [git_number, git_hash, 'latest']:
|
||||||
path32 = namer.sdk_zipfilepath(revision, system, 'ia32', 'release')
|
path32 = namer.sdk_zipfilepath(revision, system, 'ia32', 'release')
|
||||||
path64 = namer.sdk_zipfilepath(revision, system, 'x64', 'release')
|
path64 = namer.sdk_zipfilepath(revision, system, 'x64', 'release')
|
||||||
DartArchiveFile(sdk32_zip, path32, checksum_files=True)
|
DartArchiveFile(sdk32_zip, path32, checksum_files=True)
|
||||||
|
|
Loading…
Reference in a new issue