Search code examples
.netcontinuous-integrationcruisecontrol.netccnet-config

How to run CruiseControl.NET task but only after a specific task ends?


For example I have three tasks: task1, task2, task3. How to write a CruiseControl.NET configuration file that runs task3 but only after task2 ends with success?


Solution

  • CruiseControl.NET v1.5 enhances the execution of tasks using their new Sequential and Parallel tasks...

    http://confluence.public.thoughtworks.org/display/CCNET/Sequential+Task

    <sequential continueOnFailure="false">
      <description>Example of how to run multiple tasks in sequence.</description>
      <tasks>
        <!-- Tasks defined here -->
      </tasks>
    </sequential>