Ejemplo n.º 1
0
    def start(self):
        result = self.build.getProperties().render(self.myWaitForFinish)
        self.waitForFinish = (str(result) == "True")

        Trigger.start(self)

        self.waitForFinish = self.myWaitForFinish
Ejemplo n.º 2
0
 def start(self):
     # Add a log linking to the triggered builders, if supplied.
     if self.triggeredBuilders:
         logText = StringIO.StringIO()
         for builder in self.triggeredBuilders:
             print >>logText, ('<b><a href="../../../../../../%s">%s'
                               '</a></b><br>' % (builder, builder))
         self.addHTMLLog('triggered builds', str(logText.getvalue()))
     # Dispatch to the super class.
     Trigger.start(self)
Ejemplo n.º 3
0
 def start(self):
     # Add a log linking to the triggered builders, if supplied.
     if self.triggeredBuilders:
         logText = StringIO.StringIO()
         for builder in self.triggeredBuilders:
             print >>logText, ('<b><a href="../../../../../../%s">%s'
                               '</a></b><br>' % (builder, builder))
         self.addHTMLLog('triggered builds', str(logText.getvalue()))
     # Dispatch to the super class.
     Trigger.start(self)
Ejemplo n.º 4
0
    def start(self):
        sss = self.build.getAllSourceStamps()
        is_master = False
        for ss in sss:
            if not ss.changes:
                continue
            for ch in ss.changes:
                if ch.properties.getProperty("branchname",
                                             None) in self.branchList:
                    is_master = True

        if is_master:
            return Trigger.start(self)
        else:
            self.running = True
            self.step_status.setText(["(no branch match)"])
            self.end(SUCCESS)
            return