~james-w/tarmac/one-at-a-time

« back to all changes in this revision

Viewing changes to tarmac/plugins/recipebuilder.py

  • Committer: James Westby
  • Date: 2013-01-23 23:19:00 UTC
  • mfrom: (398.2.3 tarmac)
  • Revision ID: james.westby@canonical.com-20130123231900-1x5t4l9fx13kiob2
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    configuration, and if found, triggers that recipe to build on Launchpad.
27
27
    '''
28
28
 
29
 
    def run(self, command, target):
 
29
    def run(self, command, target, *args, **kwargs):
30
30
        '''Trigger a package recipe build.'''
 
31
        success_count = kwargs.get('success_count', 0)
 
32
        
31
33
        try:
32
34
            self.package_recipe = target.config.package_recipe
33
35
            self.series_list = target.config.recipe_series.split(',')
34
36
        except AttributeError:
35
37
            return
36
38
 
 
39
        if success_count == 0:
 
40
            return
 
41
 
37
42
        self.logger.debug('Triggering package recipe: %s' %
38
43
                          self.package_recipe)
39
44
        (owner, recipe) = self.package_recipe.split('/')