CruiseControl: how to read logs from an exec task

I am running an external groovy script through cruisecontrol, which basically works. My problem is that if the groovy script fails, I only get the โ€œerror string foundโ€ in my webapp cruise and email; its not even in the log files. The groovy script writes the output to stdout and to the log file. How can I display the output of an external script in cruisecontrol logs?

<project name="proj">
    <schedule>
        <exec workingdir="/myscripts/folder"
            command="//bin/groovy"
            args="build.groovy -p ${project.name}.properties"
            errorstr="Exception"/>
    </schedule>
</project>
+3
source share
2 answers

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

, , . <merge> () .

0

Source: https://habr.com/ru/post/1728434/


All Articles