本文整理汇总了Python中buildslave.commands.base.SourceBaseCommand类的典型用法代码示例。如果您正苦于以下问题:Python SourceBaseCommand类的具体用法?Python SourceBaseCommand怎么用?Python SourceBaseCommand使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了SourceBaseCommand类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.vcexe = utils.getCommand("bzr")
self.repourl = args['repourl']
self.sourcedata = "%s\n" % self.repourl
self.revision = self.args.get('revision')
self.forceSharedRepo = args.get('forceSharedRepo')
示例2: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.bkurl = args['bkurl']
self.sourcedata = '"%s\n"' % self.bkurl
self.bk_args = []
if args.get('extra_args', None) is not None:
self.bk_args.extend(args['extra_args'])
示例3: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.repourl = args["repourl"]
self.clobberOnBranchChange = args.get("clobberOnBranchChange", True)
self.sourcedata = "%s\n" % self.repourl
self.branchType = args.get("branchType", "dirname")
self.stdout = ""
self.stderr = ""
self.clobbercount = 0 # n times we've clobbered
示例4: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.repourl = args['repourl']
self.clobberOnBranchChange = args.get('clobberOnBranchChange', True)
self.sourcedata = "%s\n" % self.repourl
self.branchType = args.get('branchType', 'dirname')
self.stdout = ""
self.stderr = ""
self.clobbercount = 0 # n times we've clobbered
示例5: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.vcexe = utils.getCommand("git")
self.repourl = args['repourl']
self.branch = args.get('branch')
if not self.branch:
self.branch = "master"
self.sourcedata = "%s %s\n" % (self.repourl, self.branch)
self.submodules = args.get('submodules')
self.ignore_ignores = args.get('ignore_ignores', True)
示例6: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.repourl = args['repourl']
self.branch = args.get('branch')
if not self.branch:
self.branch = "master"
self.sourcedata = "%s %s\n" % (self.repourl, self.branch)
self.submodules = args.get('submodules')
self.ignore_ignores = args.get('ignore_ignores', True)
self.reference = args.get('reference', None)
示例7: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.cvsroot = args['cvsroot']
self.cvsmodule = args['cvsmodule']
self.global_options = args.get('global_options', [])
self.checkout_options = args.get('checkout_options', [])
self.export_options = args.get('export_options', [])
self.extra_options = args.get('extra_options', [])
self.branch = args.get('branch')
self.login = args.get('login')
self.sourcedata = "%s\n%s\n%s\n" % (self.cvsroot, self.cvsmodule,
self.branch)
示例8: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.repourl = args['repourl']
self.manifest_branch = args.get('manifest_branch')
if not self.manifest_branch:
self.manifest_branch = "master"
self.manifest = args.get('manifest')
self.repotarball = args.get('repotarball')
self.downloadrevision = None
if not self.manifest:
self.manifest = "default.xml"
self.sourcedata = "%s -b %s -m %s\n" % (self.repourl, self.manifest_branch, self.manifest)
示例9: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.manifest_url = args.get('manifest_url')
self.manifest_branch = args.get('manifest_branch')
self.manifest_file = args.get('manifest_file')
self.tarball = args.get('tarball')
self.repo_downloads = args.get('repo_downloads')
# we're using string instead of an array here, because it will be transferred back
# to the master as string anyway and using eval() could have security implications.
self.repo_downloaded = ""
self.sourcedata = "%s %s %s" % (self.manifest_url, self.manifest_branch, self.manifest_file)
self.re_change = re.compile(".* refs/changes/\d\d/(\d+)/(\d+) -> FETCH_HEAD$")
self.re_head = re.compile("^HEAD is now at ([0-9a-f]+)...")
示例10: setup
def setup(self, args, no_getCommand=False):
SourceBaseCommand.setup(self, args)
# avoid doing this if used via a subclass
if not no_getCommand:
self.vcexe = utils.getCommand("tla")
self.archive = args.get('archive')
self.url = args['url']
self.version = args['version']
self.revision = args.get('revision')
self.buildconfig = args.get('build-config')
self.sourcedata = "%s\n%s\n%s\n" % (self.url, self.version,
self.buildconfig)
示例11: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.repourl = args['repourl']
self.branch = args['branch']
self.revision = args.get('revision', None)
self.progress = args.get('progress', False)
self._pull_timeout = args.get("timeout")
self.sourcedata = "%s?%s" % (self.repourl, self.branch)
self.stdout = ""
self.stderr = ""
self.database = os.path.join(self.builder.basedir, 'db.mtn')
self.mtn = self.getCommand("mtn")
示例12: maybeDoVCRetry
def maybeDoVCRetry(self, res):
"""Called after doVCFull."""
if type(res) is int and res == 2:
# Non-VC failure, return 2 to turn the step red.
return res
# super
return SourceBaseCommand.maybeDoVCRetry(self, res)
示例13: maybeDoVCFallback
def maybeDoVCFallback(self, rc):
"""Called after doVCUpdate."""
if type(rc) is int and rc == 2:
# Non-VC failure, return 2 to turn the step red.
return rc
# super
return SourceBaseCommand.maybeDoVCFallback(self, rc)
示例14: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.vcexe = utils.getCommand("svn")
self.svnurl = args["svnurl"]
self.sourcedata = "%s\n" % self.svnurl
self.keep_on_purge = args.get("keep_on_purge", [])
self.keep_on_purge.append(".buildbot-sourcedata")
self.ignore_ignores = args.get("ignore_ignores", True)
self.always_purge = args.get("always_purge", False)
self.svn_args = []
if args.has_key("username"):
self.svn_args.extend(["--username", args["username"]])
if args.has_key("password"):
self.svn_args.extend(["--password", Obfuscated(args["password"], "XXXX")])
if args.get("extra_args", None) is not None:
self.svn_args.extend(args["extra_args"])
if args.has_key("depth"):
self.svn_args.extend(["--depth", args["depth"]])
示例15: setup
def setup(self, args):
SourceBaseCommand.setup(self, args)
self.vcexe = utils.getCommand("svn")
self.svnurl = args['svnurl']
self.sourcedata = "%s\n" % self.svnurl
self.keep_on_purge = args.get('keep_on_purge', [])
self.keep_on_purge.append(".buildbot-sourcedata")
self.ignore_ignores = args.get('ignore_ignores', True)
self.always_purge = args.get('always_purge', False)
self.svn_args = []
if args.has_key('username'):
self.svn_args.extend(["--username", args['username']])
if args.has_key('password'):
self.svn_args.extend(["--password", Obfuscated(args['password'], "XXXX")])
if args.get('extra_args', None) is not None:
self.svn_args.extend(args['extra_args'])
if args.has_key('depth'):
self.svn_args.extend(["--depth",args['depth']])