def __init__(self, **kwargs): if not 'platform' in kwargs: return FAILURE self.platform = kwargs['platform'] if 'clobberFilePath' in kwargs: self.clobberFilePath = kwargs['clobberFilePath'] if 'logDir' in kwargs: self.logDir = kwargs['logDir'] if self.platform.startswith('win'): self.tboxClobberModule = 'mozilla/tools/tinderbox-configs/seamonkey/win32' else: self.tboxClobberModule = 'mozilla/tools/tinderbox-configs/seamonkey/' + self.platform if 'cvsroot' in kwargs: self.cvsroot = kwargs['cvsroot'] if 'branch' in kwargs: self.branchString = ' -r ' + kwargs['branch'] self.buildbotClobberModule = 'mozilla/tools/buildbot-configs/testing/seamonkey/CLOBBER/seamonkey/' + kwargs[ 'branch'] + '/' + self.platform else: self.branchString = '' self.buildbotClobberModule = 'mozilla/tools/buildbot-configs/testing/seamonkey/CLOBBER/seamonkey/TRUNK/' + self.platform if not 'command' in kwargs: self.command = r'cd ' + self.clobberFilePath + r' && cvs -d ' + self.cvsroot + r' checkout' + self.branchString + r' -d tinderbox-configs ' + self.tboxClobberModule + r'>' + self.logDir + tboxClobberCvsCoLog + r' && cvs -d ' + self.cvsroot + r' checkout -d buildbot-configs ' + self.buildbotClobberModule + r'>' + self.logDir + buildbotClobberCvsCoLog ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if 'cvsroot' in kwargs: self.cvsroot = kwargs['cvsroot'] if not 'command' in kwargs: kwargs['command'] = [ "cvs", "-d", self.cvsroot, "co", "mozilla/client.mk" ] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if 'branch' in kwargs: self.branch = kwargs['branch'] if 'filename' in kwargs: self.filename = kwargs['filename'] if 'executablePath' in kwargs: self.exePath = kwargs['executablePath'] if not 'command' in kwargs: kwargs['command'] = ["unzip -o -d " + self.exePath] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): self.filename = "" self.branch = "" if 'branch' in kwargs: self.branch = kwargs['branch'] if 'filename' in kwargs: self.filename = kwargs['filename'] if not 'command' in kwargs: kwargs['command'] = ["expect", "installdmg.ex", "$FILENAME"] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if 'url' in kwargs: self.url = kwargs['url'] if 'branch' in kwargs: self.branch = kwargs['branch'] if 'filenameSearchString' in kwargs: self.filenameSearchString = kwargs['filenameSearchString'] if not 'command' in kwargs: kwargs['command'] = ["wget"] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): self.filename = "" self.branch = "" if 'branch' in kwargs: self.branch = kwargs['branch'] if 'filename' in kwargs: self.filename = kwargs['filename'] if not 'command' in kwargs: kwargs['command'] = ["tar", "-zvxf"] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if not 'platform' in kwargs: return FAILURE self.platform = kwargs['platform'] if 'dir' in kwargs: self.dir = kwargs['dir'] if self.platform.startswith('win'): self.command = r'if not exist ' + self.dir + r' mkdir ' + self.dir else: self.command = ['mkdir', '-p', self.dir] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if 'url' in kwargs: self.url = kwargs['url'] else: self.url = kwargs['build'].source.changes[0].files[0] if 'branch' in kwargs: self.branch = kwargs['branch'] if 'filenameSearchString' in kwargs: self.filenameSearchString = kwargs['filenameSearchString'] if not 'command' in kwargs: kwargs['command'] = ["wget"] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): platformFlag = "" slaveNameFlag = "" branchFlag = "" if 'platform' in kwargs: platformFlag = " --platform=" + kwargs['platform'] if 'slaveName' in kwargs: slaveNameFlag = " --slaveName=" + kwargs['slaveName'] if 'branch' in kwargs: branchFlag = " --branch=" + kwargs['branch'] if not 'command' in kwargs: self.command = 'python D:\\builds\\master\\killAndClobberWin.py' + platformFlag + slaveNameFlag + branchFlag ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): self.flunkOnFailure = True self.warnOnWarnings = True self.warnOnFailure = True if 'buildType' in kwargs: self.buildType = kwargs['buildType'] else: self.buildType = "opt" if 'branch' in kwargs: self.branch = kwargs['branch'] else: self.branch = "1.9.0" ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): self.addOptions = [] assert 'build' in kwargs assert 'executablePath' in kwargs assert 'branch' in kwargs self.title = kwargs['build'].slavename self.changes = kwargs['build'].source.changes self.buildid = strftime("%Y%m%d%H%M", localtime(self.changes[-1].when)) self.branch = kwargs['branch'] self.exePath = kwargs['executablePath'] if 'addOptions' in kwargs: self.addOptions = kwargs['addOptions'] if not 'command' in kwargs: kwargs['command'] = ["python", "PerfConfigurator.py", "-v", "-e", self.exePath, "-t", self.title, "-b", self.branch, "-d", self.buildid, "-i", self.buildid] + self.addOptions ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): self.branch = "HEAD" self.fileURL = "" self.filename = "" self.filenameSearchString = "en-US.win32.zip" if 'filenameSearchString' in kwargs: self.filenameSearchString = kwargs['filenameSearchString'] if 'url' in kwargs: self.url = kwargs['url'] else: self.url = kwargs['build'].source.changes[-1].files[0] if 'branch' in kwargs: self.branch = kwargs['branch'] if not 'command' in kwargs: kwargs['command'] = ["wget"] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if not 'project' in kwargs or kwargs['project'] is None: self.project = "browser" else: self.project = kwargs['project'] del kwargs['project'] if not 'workdir' in kwargs: kwargs['workdir'] = "mozilla" if not 'command' in kwargs: kwargs['command'] = ["make", "-f", "client.mk", "pull_all"] env = {} if 'env' in kwargs: env = kwargs['env'].copy() env['MOZ_CO_PROJECT'] = self.project kwargs['env'] = env ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): assert kwargs['url'] != "" assert kwargs['filenameSearchString'] != "" #if this change includes a link use it if self.changes[-1].links: self.url = self.changes[-1].links else: self.url = kwargs['url'] self.filenameSearchString = kwargs['filenameSearchString'] self.branch = "HEAD" self.fileURL = "" if 'branch' in kwargs: self.branch = kwargs['branch'] if not 'command' in kwargs: kwargs['command'] = ["wget"] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if 'build' in kwargs: self.title = kwargs['build'].slavename self.changes = kwargs['build'].source.changes self.buildid = self.changes[0].comments.split(',')[0] if 'branch' in kwargs: self.branch = kwargs['branch'] if 'configPath' in kwargs: self.configPath = kwargs['configPath'] if 'executablePath' in kwargs: self.exePath = kwargs['executablePath'] if not 'command' in kwargs: kwargs['command'] = ["python PerfConfigurator.py -v -e " + \ self.exePath + " -c " + self.configPath + \ " -t " + self.title + " -b " + "'" + \ self.branch + "'" + " -d -i " + self.buildid] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if 'platform' in kwargs: self.platform = kwargs['platform'] if 'logDir' in kwargs: self.logDir = kwargs['logDir'] if 'clobberFilePath' in kwargs: self.clobberFilePath = kwargs['clobberFilePath'] if not 'command' in kwargs: tboxGrepCommand = r"grep -q '^U tinderbox-configs.CLOBBER' " + self.logDir + tboxClobberCvsCoLog tboxPrintHeader = "echo Tinderbox clobber file updated" tboxCatCommand = "cat %s/tinderbox-configs/CLOBBER" % self.clobberFilePath buildbotGrepCommand = r"grep -q '^U buildbot-configs.CLOBBER' " + self.logDir + buildbotClobberCvsCoLog buildbotPrintHeader = "echo Buildbot clobber file updated" buildbotCatCommand = "cat %s/buildbot-configs/CLOBBER" % self.clobberFilePath rmCommand = "rm -rf mozilla" printExitStatus = "echo No clobber required" self.command = tboxGrepCommand + r' && ' + tboxPrintHeader + r' && ' + tboxCatCommand + r' && ' + rmCommand + r'; if [ $? -gt 0 ]; then ' + buildbotGrepCommand + r' && ' + buildbotPrintHeader + r' && ' + buildbotCatCommand + r' && ' + rmCommand + r'; fi; if [ $? -gt 0 ]; then ' + printExitStatus + r'; fi' ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): self.addOptions = [] assert 'build' in kwargs assert 'executablePath' in kwargs assert 'branch' in kwargs self.title = kwargs['build'].slavename self.changes = kwargs['build'].source.changes self.buildid = strftime("%Y%m%d%H%M", localtime(self.changes[-1].when)) self.branch = kwargs['branch'] self.exePath = kwargs['executablePath'] if 'addOptions' in kwargs: self.addOptions = kwargs['addOptions'] if not 'command' in kwargs: kwargs['command'] = [ "python", "PerfConfigurator.py", "-v", "-e", self.exePath, "-t", self.title, "-b", self.branch, "-d", self.buildid, "-i", self.buildid ] + self.addOptions ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if not 'platform' in kwargs: return FAILURE self.platform = kwargs['platform'] if 'clobberFilePath' in kwargs: self.clobberFilePath = kwargs['clobberFilePath'] if 'logDir' in kwargs: self.logDir = kwargs['logDir'] if self.platform.startswith('win'): self.tboxClobberModule = 'mozilla/tools/tinderbox-configs/seamonkey/win32' else: self.tboxClobberModule = 'mozilla/tools/tinderbox-configs/seamonkey/' + self.platform if 'cvsroot' in kwargs: self.cvsroot = kwargs['cvsroot'] if 'branch' in kwargs: self.branchString = ' -r ' + kwargs['branch'] self.buildbotClobberModule = 'mozilla/tools/buildbot-configs/testing/seamonkey/CLOBBER/seamonkey/' + kwargs['branch'] + '/' + self.platform else: self.branchString = '' self.buildbotClobberModule = 'mozilla/tools/buildbot-configs/testing/seamonkey/CLOBBER/seamonkey/TRUNK/' + self.platform if not 'command' in kwargs: self.command = r'cd ' + self.clobberFilePath + r' && cvs -d ' + self.cvsroot + r' checkout' + self.branchString + r' -d tinderbox-configs ' + self.tboxClobberModule + r'>' + self.logDir + tboxClobberCvsCoLog + r' && cvs -d ' + self.cvsroot + r' checkout -d buildbot-configs ' + self.buildbotClobberModule + r'>' + self.logDir + buildbotClobberCvsCoLog ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if 'branch' in kwargs: self.branch = kwargs['branch'] if not 'command' in kwargs: kwargs['command'] = ["python run_tests.py "] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if 'cvsroot' in kwargs: self.cvsroot = kwargs['cvsroot'] if not 'command' in kwargs: kwargs['command'] = ["cvs", "-d", self.cvsroot, "co", "mozilla/client.mk"] ShellCommand.__init__(self, **kwargs)
def __init__(self, **kwargs): if 'branch' in kwargs: self.branch = kwargs['branch'] if not 'command' in kwargs: kwargs['command'] = ["python", "run_tests.py"] ShellCommand.__init__(self, **kwargs)