There is a task within CruiseControl.NET that can be used to stop or start a
project. This can be used together with the conditional task to stop the
project if it has failed.

 

The following is an example of how this could be done:

<project name="ControlTask">

  <!-- Other settings -->

  <publishers>

    <conditional>

      <conditions>

        <statusCondition>

          <value>Success</value>

        </statusCondition>

      </conditions>

      <elseTasks>

        <cruiseServerControl>

          <actions>

            <controlAction>

              <project>ControlTask</project>

              <type>StopProject</type>

            </controlAction>

          </actions>

        </cruiseServerControl>

      </elseTasks>

    </conditional>

    <xmllogger />

    <!-- Other publishers -->

  </publishers>

</project>

 

Craig

 

From: [email protected] [mailto:[email protected]] On
Behalf Of Carlos Diaz
Sent: Wednesday, 16 March 2011 12:27 a.m.
To: [email protected]
Subject: Re: [ccnet-user] Stopping a project

 

This is great info. Thanks for your help.

CD

On Tue, Mar 15, 2011 at 4:50 AM, Daniel Nauck <[email protected]>
wrote:

Hello,

 

maybe you can use the conditional task [1] and then call our utility "cccmd"
to stop a project?

 

Daniel

 

 

[1] http://build.nauck-it.de/doc/CCNET/Conditional%20Task.html
<http://build.nauck-it.de/doc/CCNET/Conditional+Task.html> 

 

Am 15.03.2011 um 04:03 schrieb cdzero:





I have a few projects running continuously. I would like to be able to
stop a project when an error occurs. Right now when a test fails we
get failure information forwarded by e-mail but the project begins the
following execution as scheduled. Is there any way to stop the msbuild
project on failure?

 

 

Reply via email to