views:

208

answers:

1

I start an external groovy script via cruisecontrol, which basically works. My problem is that if the groovy script fails I only get the "error string found" in my cruise webapp and email; its even not in the log files. The groovy script writes it output to stdout and to a logfile. How it is possible to display the output of an external script in the cruisecontrol logs?

<project name="proj">
    <schedule>
        <exec workingdir="/myscripts/folder"
            command="//bin/groovy"
            args="build.groovy -p ${project.name}.properties"
            errorstr="Exception"/>
    </schedule>
</project>
A: 

A way to include something in the build log is to use <merge> element.

I am not sure if this is what you are looking for. But <merge> element takes some file and puts it (merges it into) to the build log.

Grzegorz Oledzki