I have a separate job to build a project during the night. But I only want to build it if the code of the project is changed or snapshot dependency of the project is built.
Building a project nightly when codebase was changed can be achieved using SCM polling schedule. But how I can combine it together with "Build whenever SNAPSHOT dependency is built"?