jenkins workflow “Build whenever a SNAPSHOT dependency is built”

穿精又带淫゛_ 提交于 2019-12-12 11:01:52

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!