问题
I'm currently trying to construct my Maven Job with Jenkins Workflow plugin. In maven job it's possible to set Build Trigger options to "Build whenever a SNAPSHOT dependency is built". Is there any way to translate this option to Workflow job? I really don't want to transcribe those dependencies manually (there are a lot of them).
回答1:
Use Build pipeline plugin and create a view giving your top module as the initial job. It will automatically setup all the jobs according to it's dependencies.
来源:https://stackoverflow.com/questions/33753857/jenkins-workflow-build-whenever-a-snapshot-dependency-is-built