How to trigger a build only if changes happen on particular set of files

后端 未结 8 1616
后悔当初
后悔当初 2020-11-28 20:01

How do I tell Jenkins/Hudson to trigger a build only for changes on a particular project in my Git tree?

8条回答
  •  被撕碎了的回忆
    2020-11-28 20:36

    If the logic for choosing the files is not trivial, I would trigger script execution on each change and then write a script to check if indeed a build is required, then triggering a build if it is.

提交回复
热议问题