We do have this configuration in our GUI based Jenkins project, trying to convert it to Jenkins pipeline, couldn't find how to add precurse-build as dependent build as shown in red below.
I added below below pipeline code to trigger the build whenrun_job is added as gerrit comment, and it works good, would anyone please show me how to add Other jobs on which this job depends to this?
pipeline { triggers { gerrit dynamicTriggerConfiguration: 'true', triggerConfigURL: 'https://some/url/path/trigger.txt', serverName: 'gerrit-server', triggerOnEvents: [ commentAddedContains('^run_job$') ] } stages { ... ... 