Hi Deepak,

Thanks for the reply!

I ended up forking the Build Blocker Plugin [1]. Now, there's no more upstream/downstream relationship between JobA and JobB, but B will always wait for A if they're both in the queue, which is exactly what I wanted :)

The problem with the original plugin is that it only checks jobs in the queue that are in the "Waiting for executor" state. I modified it to check all jobs in the queue.

I'll definitely take a look at the Build PipeLine plugin you mentioned though. That looks pretty useful.

Cheers,
Xiao-Long

[1]: https://github.com/chenxiaolong/build-blocker-plugin

On 02/23/2013 05:06 AM, Deepak wrote:
You may try one of the following

Build PipeLine <https://wiki.jenkins-ci.org/display/JENKINS/Build+Pipeline+Plugin> In this you could make 2 pipelines and trigger whichever you want to be triggered

You could also look at Conditional BuildStep <https://wiki.jenkins-ci.org/display/JENKINS/Conditional+BuildStep+Plugin> Plugin but i do not know of how much help this will be in your case...

Regards,
Deepak


On Friday, 22 February 2013 06:56:16 UTC+5:30, Xiao-Long Chen wrote:

    Hi everyone,

    I'm having a bit of an issue with dependencies with in Jenkins. I can't 
seem to
    find a way to make one job depend on another without the second calling the
    first.

    Suppose I have JobA and JobB, where JobB depends on JobA.

    I want JobB to always run after JobA if both are set to run (in my setup,
    everything that needs to run is triggered at once by a master job).

    However, if only JobA needs to run, I don't want it to call JobB after it

    has finished.

    Is this possible to do?

    Thanks in advance!

    Xiao-Long Chen

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to