Created
April 19, 2016 00:01
-
-
Save brandon-fryslie/9345c7f26bf8514b4edbfea1821cb565 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
get_bad_builds(build) | |
bad_builds = [] | |
if isList(build) | |
for b in build | |
bad_builds.append(get_bad_build(b)) | |
if build.hasKey('builds') | |
get_bad_builds(build.builds) | |
else if build.hasKey('subBuilds') | |
get_bad_builds(build.subBuilds) | |
else # no builds | |
if build.failed | |
bad_builds.push(build) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment