My repo has several projects in subfolders with the same structure, duplicated on several branches.
I am trying to set up a task that monitors all branches and starts work only when a change is made in the 'Project1' subdirectory. This way, I can check if the changes in "Project1" will work with release branches and any child branches that people could customize.
In theory, it seems that the Git plugin allows me to install this by specifying "**" in the "Branches for assembly" and "Project1. *" In the "Included regions" section. I also use the SCM Poll, as this is apparently a prerequisite.
This works great as long as you make changes to only one branch. After you make changes to the "Project1" folder on another branch, Jenkins will pick up the changes from any directory.
Is this a bug or trying to do something that is not supported?
source
share