I’m not sure if there is a plugin that lets you do this... I see two solutions:
1. In your pipeline, check if the cause is an upstream job cause and abort if not (functionality will be correct, but run the risk of lots of aborted builds) 2. Write a plugin. Your plugin will need two parts: a JobProperty to mark jobs as “upstream only” and a QueueItemListener that checks if the queue schedule request is for a job with the job property and in that case rejects unless the cause is an upstream job... this is *exactly* what you want... but more work than #1... i’d say about 40h work if it’s your first plugin and you know Java as a main development language. On Mon 17 Dec 2018 at 19:36, Mark Bidewell <mbide...@gmail.com> wrote: > Is there a way to allow users to only build a job as part of an upstream / > downstream dependency while disallowing direct execution? > > Thanks! > > -- > 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. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/e569faa8-3f52-4cc3-8fd5-642ae6f35b99%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/e569faa8-3f52-4cc3-8fd5-642ae6f35b99%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Sent from my phone -- 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. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CA%2BnPnMxhDrL3c%3DsX7d-crvFG-Bc4506g1%3DerA7fV9KgtgvXN%3DA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.