当前位置: 首页>>代码示例>>Python>>正文


Python base.SourceBaseCommand类代码示例

本文整理汇总了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')
开发者ID:PerilousApricot,项目名称:buildbot,代码行数:7,代码来源:bzr.py

示例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'])
开发者ID:Flumotion,项目名称:buildbot,代码行数:8,代码来源:bk.py

示例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
开发者ID:paroga,项目名称:buildbot,代码行数:9,代码来源:hg.py

示例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
开发者ID:Flumotion,项目名称:buildbot,代码行数:9,代码来源:hg.py

示例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)
开发者ID:PerilousApricot,项目名称:buildbot,代码行数:10,代码来源:git.py

示例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)
开发者ID:pao,项目名称:buildbot,代码行数:10,代码来源:git.py

示例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)
开发者ID:ABI-Software,项目名称:buildbot,代码行数:12,代码来源:cvs.py

示例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)
开发者ID:pao,项目名称:buildbot,代码行数:12,代码来源:repo.py

示例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]+)...")
开发者ID:paroga,项目名称:buildbot,代码行数:14,代码来源:repo.py

示例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)
开发者ID:PerilousApricot,项目名称:buildbot,代码行数:14,代码来源:arch.py

示例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")
开发者ID:1stvamp,项目名称:buildbot,代码行数:16,代码来源:mtn.py

示例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)
开发者ID:eunchong,项目名称:build,代码行数:8,代码来源:chromium_commands.py

示例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)
开发者ID:eunchong,项目名称:build,代码行数:8,代码来源:chromium_commands.py

示例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"]])
开发者ID:rholden,项目名称:buildbot,代码行数:20,代码来源:svn.py

示例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']])
开发者ID:PerilousApricot,项目名称:buildbot,代码行数:20,代码来源:svn.py


注:本文中的buildslave.commands.base.SourceBaseCommand类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。