Wednesday, 5 October 2011

CruiseControl.NET: Display error/warning on the ccnet project’s main page

How do we display an error or warning message on the ccnet project’s main page?

We generally write ECHO messages:

<echo message="Problem with your build: ${error.code}."/> 
But this will log the message only to the ‘NAnt Output’ log.
To display the message on the project’s home page, we need to add the Level attribute with an appropriate setting: Error or Warning.
<echo message="Problem with your build: ${exit.code}." level="Error"/>

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Shorts - week 3, 2022

Post with links to what I am reading: 1. A very good post on different aspects of system architecture: https://lethain.com/introduction-to-a...