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.