[Buildbot-devel] conditional buildStep based on results from previous step(s)?
Mike Winter (miwinter)
miwinter at cisco.com
Wed Mar 6 22:44:43 UTC 2013
I did something like this for tracking cell-failures and assigning owners,
but the solution was made against 7.12 and we never upgraded to v8.
Here is the real-heart of the code:
for step in build.steps:
key = generate_problem_key(name, step.getName())
#key = "%s-%s" % (name, step.getName())
(step_result, text2) = step.getResults()
if step_result != SUCCESS and step_result != SKIPPED:
failures = self.readFailuresLog(step)
HTH
Mike
On 3/6/13 12:46:17PM, "Stephan Koledin" <skoledin at gmail.com> wrote:
>Hello-
>
>I'd like to make some of my buildSteps conditional (perhaps via doStepIf
>?) on the status/result of the previous buildStep. For example if step#2
>fails, I'd like to skip step#3. Additionally, if step#3 is skipped,
>step#4-6 should also be skipped.
>
>Is this a matter of setting/getting a build Property within some
>customized ShellCommand-based classes, or is there a better/cleaner way
>to accomplish this out of the box?
>
>Sorry if this has already been covered in the list or documentation. If
>so, any pointers in the right direction would be much appreciated. I
>searched extensively, but couldn't really find anything specific to this
>situation.
>
>Thanks.
>-Stephan
>
>--------------------------------------------------------------------------
>----
>Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester
>Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the
>endpoint security space. For insight on selecting the right partner to
>tackle endpoint security challenges, access the full report.
>http://p.sf.net/sfu/symantec-dev2dev
>_______________________________________________
>Buildbot-devel mailing list
>Buildbot-devel at lists.sourceforge.net
>https://lists.sourceforge.net/lists/listinfo/buildbot-devel
More information about the devel
mailing list