A Jenkins pipeline is able to trigger a build of another job as a step.
steps {
build job: "my-downstream-job"
}
This is a push/imperative model, ie the downstream job is told to build by the upstream job.
Does Jenkins support a pull model? ie I would like a job to observe one/many other jobs and start to build itself if these other jobs are triggered.
The use case is to create a job that creates a template, and if that template changes by the template job triggering, all the other jobs that use this template will fire, rather than having to hardcode in all the dependencies into the template job.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.