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

Continue on a step even if the inline library fails

Hi,

Here is the scenario:

There are 5 steps in my project (1,2,3,4,5). The 3rd step calls an Inline library which has 5 steps (1,2,3,4,5). I want to continue to execute step 4 in my main project even if the library fails. But, I do not want to continue with subsequent steps in the library. (For example, suppose step 2 of library fails. I want to halt the execution of subsequent steps in the library. But, I want to continue to execute the subsequent steps of the project).

I do not want to use .runwait command since it would lead to too many jobs running and there is a limit to maximum number of projects that can run. And, if the limit exceeds, the step invoking a library using .runwait command never gets executed.

Thanks
Ankit

0 votes



2 answers

Permanent link
Have you tried fail chaining the steps? Whatever steps you dont mind failing, have them fail chain a library with steps need to complete you original job (which should have failed and freed up some threads yes?)

0 votes


Permanent link
Hi,

I do not know if I have understood your suggestion clearly.. But, I have fail chains and I believe that it won't work in my case.

Let me be more clear with the scenario with an example:

There are 5 different product artifacts which I want to build. For each product I call a corresponding library.. I want to build all the products even if any one product build fails..

Step 1: Call Library 1 to build Product 1
Step 2: Call Library 2 to build Product 2
Step 3: Call Library 3 to build Product 3
Step 4: Call Library 4 to build Product 4
Step 5: Call Library 5 to build Product 5

Each library has multiple steps to build the corresponding product. I want to continue to Step 2 if Step 1 fails.. Suppose, Library 1 has 5 steps and step 3 fails. I do not want to execute last 2 steps of library, but I want to continue executing Step 2 of the main project.

I can achieve this only if I call Library 1 using .runwait command. But, this creates a new job and there is a limit to number of jobs you can start. If it crosses the limit, the library is never executed. So, I want to minimize the usage of .runwait command.

Is there any way I can achieve this..

Thanks
Ankit

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

Question asked: Jul 28 '11, 3:25 p.m.

Question was seen: 5,000 times

Last updated: Jul 28 '11, 3:25 p.m.

Confirmation Cancel Confirm