[Anthill-pro] PostProcessingScript failure - help please!

Steve Boone sbb at urbancode.com
Tue Jan 29 11:00:12 CST 2008


Wes,

Something like thi sshould work.

*return* Fail.unless(
    Logic.and(
        Logic.not(Output.contains("Some unit tests failed")),
        ExitCode.is(0)
    )
)



On 1/29/08, Wes Bramhall <WesB at widen.com> wrote:
>
>  Greetings! I'm using an Ant Builder and it's using the Default Ant Build
> PostProcessingScript:
>
> *return* Fail.unless(
>
>     Logic.and(
>
>         Output.contains("BUILD SUCCESSFUL"),
>
>         ExitCode.is(0)
>
>     )
>
> )
>
>
>
> When I run the build and unit tests fail, I have a fail inside that ant
> target (unit.tests.failed is the failureproperty of the junit task):
>
>       <fail message="Some unit tests failed." if="unit.tests.failed"/>
>
>
>
>
>
> Anthill is not sending out my failure or success emails, I'm thinking due
> to the unexpected exception.
>
>
>
>
>
> Error Message:**
>
> *BuildLifeJobTrace Failed*
>
> 2008-01-28 18:40:34,069 ERROR 458 - Caught unexpected exception -
> com.urbancode.command.CommandResultException: PostProcessingScript Failing
> command: 0 lines matched
>
> *Step 5: Trunk Unit Tests Ant Builder Failed*
>
> 2008-01-28 18:40:34,037 ERROR 458 4 - PostProcessingScript Failing
> command: 0 lines matched
>
>
>
> Ant Builder output:
>
> BUILD FAILED
>
> D:\anthill3.4-agent\var\jobs\projects\Trunk_Unit_Tests_Project\Trunk_Unit_Tests_Workflow\collective\anthill3_build.xml:185:
> Some unit tests failed.
>
>
>
> Total time: 5 minutes 15 seconds
>
> command exit code: 1
>
>
>
>
>
>
>
> I just have no idea why it's not working. Any help?
>
>
>
> Thanks,
>
> -Wes
>
> _______________________________________________
> Anthill-pro mailing list
> Anthill-pro at lists.urbancode.com
> http://lists.urbancode.com/mailman/listinfo/anthill-pro
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.urbancode.com/pipermail/anthill-pro/attachments/20080129/71cd6234/attachment.htm


More information about the Anthill-pro mailing list