Jenkins + Git: Only build if PR introduced changes in subdirectory
问题 We have a large monorepo with multiple projects (A and B) inside of it. I currently have Jenkins setup as a Multibranch Pipelines project that watches the monorepo for PRs. If a PR is created, Jenkins builds both A and B. Now, I want Jenkins to be smarter and only build project A if any change in the PR introduced a change in the A/ directory. This is proving very difficult. when { changeset "A/" } only appears to check if the last commit changed a file in A/ , not if the PR changed a file in