Ejemplo n.º 1
0
 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')
Ejemplo n.º 2
0
    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'])
Ejemplo n.º 3
0
    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'])
Ejemplo n.º 4
0
 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
Ejemplo n.º 5
0
 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
Ejemplo n.º 6
0
 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
Ejemplo n.º 7
0
 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)
Ejemplo n.º 8
0
Archivo: git.py Proyecto: pao/buildbot
 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)
Ejemplo n.º 9
0
 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)
Ejemplo n.º 10
0
 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)
Ejemplo n.º 11
0
Archivo: repo.py Proyecto: pao/buildbot
 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)
Ejemplo n.º 12
0
 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)
Ejemplo n.º 13
0
    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]+)...")
Ejemplo n.º 14
0
    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]+)...")
Ejemplo n.º 15
0
    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)
Ejemplo n.º 16
0
    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")
Ejemplo n.º 17
0
    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")
Ejemplo n.º 18
0
    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)
Ejemplo n.º 19
0
    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)
Ejemplo n.º 20
0
  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)
Ejemplo n.º 21
0
  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)
Ejemplo n.º 22
0
    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']])
Ejemplo n.º 23
0
    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"]])
Ejemplo n.º 24
0
    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']])
Ejemplo n.º 25
0
 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)
Ejemplo n.º 26
0
 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)
Ejemplo n.º 27
0
 def _didLogin(self, res):
     # now we really start
     return SourceBaseCommand.start(self)
Ejemplo n.º 28
0
 def setup(self, args):
     SourceBaseCommand.setup(self, args)
     self.p4port = args["p4port"]
     self.p4client = args["p4client"]
     self.p4user = args["p4user"]
     self.p4passwd = args["p4passwd"]
Ejemplo n.º 29
0
 def _didLogin(self, res):
     # now we really start
     return SourceBaseCommand.start(self)
Ejemplo n.º 30
0
 def cont(res):
     # Continue with start() method in superclass.
     return SourceBaseCommand.start(self)
Ejemplo n.º 31
0
 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')
Ejemplo n.º 32
0
 def setup(self, args):
     SourceBaseCommand.setup(self, args)
     self.p4port = args['p4port']
     self.p4client = args['p4client']
     self.p4user = args['p4user']
     self.p4passwd = args['p4passwd']
Ejemplo n.º 33
0
 def cont(res):
     # Continue with start() method in superclass.
     return SourceBaseCommand.start(self)
Ejemplo n.º 34
0
 def setup(self, args):
     SourceBaseCommand.setup(self, args)
     self.repourl = args['repourl']
     self.sourcedata = "%s\n" % self.repourl
     self.revision = self.args.get('revision')