How to make CC.NET continue build after failed task?

73 Views Asked by At

I am trying to run a couple of tasks (the xunit task, to be precise) on a CruiseControl.NET instance.

If one of these tasks fails, the build is aborted.

How can I prevent this? I would like CC.NET to run all tasks, even if some of them fail (they do not depend on one another).

I have tried running my tasks in a parallel task at first, but that would randomly fail with null reference exceptions most of the time (looked like a bug in CC.NET).

Also, I've tried to find something in the CC.NET config format docs, but wasn't successful there, either.

1

There are 1 best solutions below

3
Williams On BEST ANSWER

that is the concept of tasks in CCNet. if one fails, stop running following tasks. Possible solutions :

  • set the successExitCodes property to include all exit codes, if the number of those is small
  • place your tasks in the publisher section. publishers and tasks have the same base type (ITasks), but publishers are designed to run even if a previous one fails