Commit 03385581 authored by kkania@chromium.org's avatar kkania@chromium.org

[chromedriver] When archiving, upload a latest file that points to the new archive.

BUG=none
NOTRY=true

Review URL: https://codereview.chromium.org/57833005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233013 0039d316-1c4b-4281-b951-d872f2087c98
parent bf012524
...@@ -195,11 +195,20 @@ def _ArchiveGoodBuild(platform, revision): ...@@ -195,11 +195,20 @@ def _ArchiveGoodBuild(platform, revision):
zip_path = util.Zip(os.path.join(chrome_paths.GetBuildDir([server_name]), zip_path = util.Zip(os.path.join(chrome_paths.GetBuildDir([server_name]),
server_name)) server_name))
build_url = '%s/chromedriver_%s_%s.%s.zip' % ( build_name = 'chromedriver_%s_%s.%s.zip' % (
GS_CONTINUOUS_URL, platform, _GetVersion(), revision) platform, _GetVersion(), revision)
build_url = '%s/%s' % (GS_CONTINUOUS_URL, build_name)
if slave_utils.GSUtilCopy(zip_path, build_url): if slave_utils.GSUtilCopy(zip_path, build_url):
util.MarkBuildStepError() util.MarkBuildStepError()
(latest_fd, latest_file) = tempfile.mkstemp()
os.write(latest_fd, build_name)
os.close(latest_fd)
latest_url = '%s/latest_%s' % (GS_CONTINUOUS_URL, platform)
if slave_utils.GSUtilCopy(latest_file, latest_url, mimetype='text/plain'):
util.MarkBuildStepError()
os.remove(latest_file)
def _MaybeRelease(platform): def _MaybeRelease(platform):
"""Releases a release candidate if conditions are right.""" """Releases a release candidate if conditions are right."""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment