Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

0 votes



One answer

Permanent link

 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?

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,937
× 6,121

Question asked: Nov 17 '17, 4:50 a.m.

Question was seen: 2,755 times

Last updated: Nov 17 '17, 9:54 a.m.

Confirmation Cancel Confirm