Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9317)

Unified Diff: chrome/test/chromedriver/run_buildbot_steps.py

Issue 57833005: [chromedriver] When archiving, upload a latest file that points to it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/chromedriver/run_buildbot_steps.py
diff --git a/chrome/test/chromedriver/run_buildbot_steps.py b/chrome/test/chromedriver/run_buildbot_steps.py
index 85fdb10b99a38a8ef6432b8f944b95426407e39e..f4e2e1b211fc9a35370042ec346cc953d4d0bf5f 100755
--- a/chrome/test/chromedriver/run_buildbot_steps.py
+++ b/chrome/test/chromedriver/run_buildbot_steps.py
@@ -195,11 +195,20 @@ def _ArchiveGoodBuild(platform, revision):
zip_path = util.Zip(os.path.join(chrome_paths.GetBuildDir([server_name]),
server_name))
- build_url = '%s/chromedriver_%s_%s.%s.zip' % (
- GS_CONTINUOUS_URL, platform, _GetVersion(), revision)
+ build_name = 'chromedriver_%s_%s.%s.zip' % (
+ platform, _GetVersion(), revision)
+ build_url = '%s/%s' % (GS_CONTINUOUS_URL, build_name)
if slave_utils.GSUtilCopy(zip_path, build_url):
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):
"""Releases a release candidate if conditions are right."""
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698