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


Python SourceBaseCommand.setup方法代码示例

本文整理汇总了Python中buildslave.commands.base.SourceBaseCommand.setup方法的典型用法代码示例。如果您正苦于以下问题:Python SourceBaseCommand.setup方法的具体用法?Python SourceBaseCommand.setup怎么用?Python SourceBaseCommand.setup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在buildslave.commands.base.SourceBaseCommand的用法示例。


在下文中一共展示了SourceBaseCommand.setup方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
 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,代码行数:9,代码来源:bzr.py

示例2: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
    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,代码行数:10,代码来源:bk.py

示例3: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
 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,代码行数:11,代码来源:hg.py

示例4: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
 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,代码行数:11,代码来源:hg.py

示例5: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
 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,代码行数:12,代码来源:git.py

示例6: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
 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,代码行数:12,代码来源:git.py

示例7: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
 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,代码行数:14,代码来源:cvs.py

示例8: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
 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,代码行数:14,代码来源:repo.py

示例9: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
    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,代码行数:16,代码来源:repo.py

示例10: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
    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,代码行数:16,代码来源:arch.py

示例11: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
    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,代码行数:18,代码来源:mtn.py

示例12: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
    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,代码行数:22,代码来源:svn.py

示例13: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
    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,代码行数:22,代码来源:svn.py

示例14: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
    def setup(self, args):
        SourceBaseCommand.setup(self, args)
        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.exported_rev = 'HEAD'

        self.svn_args = []
        if "username" in args:
            self.svn_args.extend(["--username", args['username']])
        if "password" in args:
            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 "depth" in args:
            self.svn_args.extend(["--depth", args['depth']])
开发者ID:ABI-Software,项目名称:buildbot,代码行数:23,代码来源:svn.py

示例15: setup

# 需要导入模块: from buildslave.commands.base import SourceBaseCommand [as 别名]
# 或者: from buildslave.commands.base.SourceBaseCommand import setup [as 别名]
 def setup(self, args):
   """Our implementation of command.Commands.setup() method.
   The method will get all the arguments that are passed to remote command
   and is invoked before start() method (that will in turn call doVCUpdate()).
   """
   SourceBaseCommand.setup(self, args)
   self.vcexe = self.getCommand('gclient')
   self.svnurl = args['svnurl']
   self.branch = args.get('branch')
   self.revision = args.get('revision')
   self.patch = args.get('patch')
   self.sudo_for_remove = args.get('sudo_for_remove')
   self.gclient_spec = args['gclient_spec']
   self.gclient_deps = args.get('gclient_deps')
   self.sourcedata = '%s\n' % self.svnurl
   self.rm_timeout = args.get('rm_timeout', self.timeout)
   self.env = args.get('env')
   self.gclient_nohooks = args.get('gclient_nohooks', False)
   self.env['CHROMIUM_GYP_SYNTAX_CHECK'] = '1'
   self.no_gclient_branch = args.get('no_gclient_branch')
   self.no_gclient_revision = args.get('no_gclient_revision', False)
   self.gclient_transitive = args.get('gclient_transitive')
   self.gclient_jobs = args.get('gclient_jobs')
   self.project = args.get('project', None)
开发者ID:eunchong,项目名称:build,代码行数:26,代码来源:chromium_commands.py


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