aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGalina Kistanova <gkistanova@gmail.com>2019-10-19 06:35:04 +0000
committerGalina Kistanova <gkistanova@gmail.com>2019-10-19 06:35:04 +0000
commit8394e10179edf94be1e5fd2fec87ee5445ff7c49 (patch)
treedba55f3843692670ac7f96a69959c6cc4d7608bb
parent8be279e3c0f1ea598dc285a53ec5791884b9596a (diff)
Added the step name param to LLVMBuildFactory.addGetSourcecodeForProject.
git-svn-id: https://llvm.org/svn/llvm-project/zorg/trunk@375331 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--zorg/buildbot/process/factory.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/zorg/buildbot/process/factory.py b/zorg/buildbot/process/factory.py
index 4204db4f..4ef72289 100644
--- a/zorg/buildbot/process/factory.py
+++ b/zorg/buildbot/process/factory.py
@@ -145,7 +145,7 @@ class LLVMBuildFactory(BuildFactory):
# Checkout a given LLVM project to the given directory.
# TODO: Handle clean property and self.clean attribute.
- def addGetSourcecodeForProject(self, project, src_dir=None, **kwargs):
+ def addGetSourcecodeForProject(self, project, name=None, src_dir=None, **kwargs):
# Remove 'is_legacy_mode' if it leaked in to kwargs.
kwargs.pop('is_legacy_mode', None)
@@ -153,13 +153,16 @@ class LLVMBuildFactory(BuildFactory):
if self.is_legacy_mode:
workdir, baseURL = svn_repos[project]
+ if not name:
+ name = 'svn-%s' % project
+
# Check out to the given directory if any.
# Otherwise this is a part of the unified source tree.
if src_dir is None:
src_dir = workdir % {'llvm_srcdir' : self.llvm_srcdir}
self.addStep(
- SVN(name='svn-%s' % project,
+ SVN(name=name,
workdir=src_dir,
baseURL=WithProperties(baseURL),
**kwargs))
@@ -170,6 +173,9 @@ class LLVMBuildFactory(BuildFactory):
if not _repourl:
_repourl = self.repourl_prefix + "llvm-%s.git" % project
+ if not name:
+ name = 'Checkout %s' % project
+
# Check out to the given directory if any.
# Otherwise this is a part of the unified source tree.
if src_dir is None:
@@ -179,7 +185,7 @@ class LLVMBuildFactory(BuildFactory):
kwargs.pop('workdir', None)
self.addStep(
- Git(name='Checkout the %s' % project,
+ Git(name=name,
repourl=_repourl,
progress=True,
workdir=WithProperties(src_dir),