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')
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'])
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
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
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)
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)
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) self.gerrit_branch = args.get('gerrit_branch', None)
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)
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)
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]+)...")
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)
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")
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)
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)
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']])
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"]])
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']])
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_jobs = args.get('gclient_jobs') self.project = args.get('project', None)
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)
def _didLogin(self, res): # now we really start return SourceBaseCommand.start(self)
def setup(self, args): SourceBaseCommand.setup(self, args) self.p4port = args["p4port"] self.p4client = args["p4client"] self.p4user = args["p4user"] self.p4passwd = args["p4passwd"]
def cont(res): # Continue with start() method in superclass. return SourceBaseCommand.start(self)
def setup(self, args): SourceBaseCommand.setup(self, args) self.repourl = args['repourl'] self.sourcedata = "%s\n" % self.repourl self.revision = self.args.get('revision') self.forceSharedRepo = args.get('forceSharedRepo')
def setup(self, args): SourceBaseCommand.setup(self, args) self.p4port = args['p4port'] self.p4client = args['p4client'] self.p4user = args['p4user'] self.p4passwd = args['p4passwd']
def setup(self, args): SourceBaseCommand.setup(self, args) self.repourl = args['repourl'] self.sourcedata = "%s\n" % self.repourl self.revision = self.args.get('revision')