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
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
2 answers

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