def run(self):
     if is_rebuild(self.workflow):
         self.log.info(
             'this is an autorebuild, determining whether to skip it')
         if not self._is_rebuild_enabled():
             self.log.info(
                 'autorebuild is disabled, %s is interrupting the build',
                 self.key)
             raise AutoRebuildCanceledException(self.key,
                                                'autorebuild is disabled')
         else:
             self.log.info('autorebuild is enabled, %s is doing nothing',
                           self.key)
     else:
         self.log.info('this is not an autorebuild, %s is doing nothing',
                       self.key)
Ejemplo n.º 2
0
 def run(self):
     raise AutoRebuildCanceledException(self.key, 'message')