It's all about the answers!

Ask a question

Build Forge adaptor fail condition


Leo Hui (1522) | asked May 30 '13, 5:15 a.m.
edited Jun 06 '13, 8:40 a.m. by Spencer Murata (2.3k115971)
Hi I am novice in rbf and got a question on adaptor hope someone can help me

typically, if the rbf adaptor step failed then the job will be purged and the build number will roll back right.

but how under one condition I would like when the adaptor step fails, also fails the project as well, leaving failing job in the job list.
such as when <ontempenv> matches something then i would like the step, as well as project to fail, showing the bom as well, can i achieve that?

Thank you for your help!

Accepted answer


permanent link
Spencer Murata (2.3k115971) | answered May 30 '13, 8:12 a.m.
FORUM MODERATOR / JAZZ DEVELOPER
 Don't link the adaptor to the project, instead call it from a step and set the _CI_BUILD_DELETE variable to remove the failing job when you want to remove it and otherwise it will keep the build around when the adaptor step fails.

~Spencer
Leo Hui selected this answer as the correct answer

Comments
Leo Hui commented May 30 '13, 7:06 p.m.

Solved! thanks for the tip spencer! i don't realise there are _CI_BUILD_KEEP and _CI_BUILD_DELETE variables

I've added <setenv name="_CI_BUILD_KEEP" value="1" /> at ontempenv with state matched my condition.

Your answer


Register or 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.