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.
Is there a way to allow users to only build a job as part of an upstream / downstream dependency while disallowing direct execution?
Thanks!
--
Sent from my phone