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

Side by Side Diff: tools/bots/linux_distribution_support.py

Issue 1166743005: Remove GetSVNRevision from tools/utils.py (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: address comments Created 5 years, 6 months 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 unified diff | Download patch
« no previous file with comments | « tools/bots/dartium_android.py ('k') | tools/create_sdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/usr/bin/python 1 #!/usr/bin/python
2 2
3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 3 # Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
4 # for details. All rights reserved. Use of this source code is governed by a 4 # for details. All rights reserved. Use of this source code is governed by a
5 # BSD-style license that can be found in the LICENSE file. 5 # BSD-style license that can be found in the LICENSE file.
6 6
7 """ 7 """
8 Buildbot steps for src tarball generation and debian package generation 8 Buildbot steps for src tarball generation and debian package generation
9 9
10 Package up the src of the dart repo and create a debian package. 10 Package up the src of the dart repo and create a debian package.
(...skipping 21 matching lines...) Expand all
32 """ 32 """
33 src_pattern = re.match(SRC_BUILDER, name) 33 src_pattern = re.match(SRC_BUILDER, name)
34 if not src_pattern: 34 if not src_pattern:
35 return None 35 return None
36 return bot.BuildInfo('none', 'none', 'release', 'linux', 36 return bot.BuildInfo('none', 'none', 'release', 'linux',
37 builder_tag=src_pattern.group(1)) 37 builder_tag=src_pattern.group(1))
38 38
39 def ArchiveArtifacts(tarfile, builddir, channel, linux_system): 39 def ArchiveArtifacts(tarfile, builddir, channel, linux_system):
40 namer = bot_utils.GCSNamer(channel=channel) 40 namer = bot_utils.GCSNamer(channel=channel)
41 gsutil = bot_utils.GSUtil() 41 gsutil = bot_utils.GSUtil()
42 revision = utils.GetSVNRevision() 42 revision = utils.GetArchiveVersion()
43 # Archive the src tar to the src dir 43 # Archive the src tar to the src dir
44 remote_tarfile = '/'.join([namer.src_directory(revision), 44 remote_tarfile = '/'.join([namer.src_directory(revision),
45 os.path.basename(tarfile)]) 45 os.path.basename(tarfile)])
46 gsutil.upload(tarfile, remote_tarfile, public=True) 46 gsutil.upload(tarfile, remote_tarfile, public=True)
47 # Archive all files except the tar file to the linux packages dir 47 # Archive all files except the tar file to the linux packages dir
48 for entry in os.listdir(builddir): 48 for entry in os.listdir(builddir):
49 full_path = os.path.join(builddir, entry) 49 full_path = os.path.join(builddir, entry)
50 # We expect a flat structure, not subdirectories 50 # We expect a flat structure, not subdirectories
51 assert(os.path.isfile(full_path)) 51 assert(os.path.isfile(full_path))
52 if full_path != tarfile: 52 if full_path != tarfile:
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 bot_name, _ = bot.GetBotName() 175 bot_name, _ = bot.GetBotName()
176 channel = bot_utils.GetChannelFromName(bot_name) 176 channel = bot_utils.GetChannelFromName(bot_name)
177 if channel != bot_utils.Channel.BLEEDING_EDGE: 177 if channel != bot_utils.Channel.BLEEDING_EDGE:
178 ArchiveArtifacts(tarfile, builddir, channel, build_info.builder_tag) 178 ArchiveArtifacts(tarfile, builddir, channel, build_info.builder_tag)
179 else: 179 else:
180 print 'Not uploading artifacts on bleeding edge' 180 print 'Not uploading artifacts on bleeding edge'
181 181
182 if __name__ == '__main__': 182 if __name__ == '__main__':
183 # We pass in None for build_step to avoid building the sdk. 183 # We pass in None for build_step to avoid building the sdk.
184 bot.RunBot(SrcConfig, SrcSteps, build_step=None) 184 bot.RunBot(SrcConfig, SrcSteps, build_step=None)
OLDNEW
« no previous file with comments | « tools/bots/dartium_android.py ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698