How to make Build Result in an Ant based JBE build
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
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?