diff bitten/master.py @ 754:545be0c8f405

Adding the ability to modify the default ''onerror'' property in the ''<build>'' element. If not specified, the behavior is unchanged; by default any step failure will result in the build failing and stopping. Added a new ''continue'' onerror specification-- it's similar to ''ignore'' except the results of ''continue'' steps are counted in the overall build status (in ''ignore'' they're ignored.) You'll need to upgrade both your master and slaves if you wish to use the ''<build>'' element override or the new ''continue'' value. Will update http://bitten.edgewall.org/wiki/Documentation/recipes.html . Thanks to jerith for comments. Closes #409. Refs #210.
author wbell
date Sat, 24 Apr 2010 13:37:26 +0000
parents ec805e982b4c
children d11ef8024d7c
line wrap: on
line diff
--- a/bitten/master.py
+++ b/bitten/master.py
@@ -353,7 +353,8 @@
             for num, recipe_step in enumerate(recipe):
                 step = BuildStep.fetch(self.env, build.id, recipe_step.id)
                 if step.status == BuildStep.FAILURE:
-                    if recipe_step.onerror != 'ignore':
+                    if recipe_step.onerror == 'fail' or \
+                            recipe_step.onerror == 'continue':
                         build.status = Build.FAILURE
                         break
             else:
Copyright (C) 2012-2017 Edgewall Software