It's all about the answers!

Ask a question

How to make Build Result in an Ant based JBE build


Marko Tomljenovic (3162960) | asked Nov 17 '17, 4:50 a.m.

Hi,

I am running an Ant script as part of a JBE build. Now depending on the result of the Ant invocation or even by explicit definition of the build status I want the build result to either be green (OK), yellow (WARNING), red (ERROR).

I could find a link to documentation of 6.0.5 telling that a specific ant task can be used for setting the status of the build result.

Apart from that is there any other (more automatic) way of setting the build result status?

Thanks

One answer



permanent link
Lukas Steiger (3131421) | answered Nov 17 '17, 9:54 a.m.

 Most of the ant tasks have an automatic exit status which will be treated as the result of your build. 

For example, have a look at
This Ant script is used to invoke node package installation and a webpack build. If any of the exec task execution fails, the build will turn red, else, it will be green.

Is that what you are looking for?

Your answer


Register or to post your answer.