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

Build Forge adaptor fail condition

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!

0 votes


Accepted answer

Permanent link
 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

0 votes

Comments

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 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,953
× 562
× 5

Question asked: May 30 '13, 5:15 a.m.

Question was seen: 4,126 times

Last updated: Jun 06 '13, 8:40 a.m.

Confirmation Cancel Confirm