I'm very interested in the Included regions feature for GitSCM plugin and have been testing it
via SCM polling and Git hook.
I could see that in some cases the jobs were not triggered whereas some changes have been made in the included regions.
After some more testing I discovered that if several commits are made, only the last commit seems to be taken into account.
Spying the gitcommand the plugin is using I could see :
git rev-parse --verify HEAD
git command : fetch -t https://url.git +refs/heads/*:refs/remotes/origin/*
git tag -l master
git command : rev-parse origin/master^{commit}
-> Gives the new SHA1
git command : show --no-abbrev --format=raw -M --raw 'new sha1'
The last command shows only diff from latest sha1, should't it be something like :
git show --no-abbrev --format=raw -M --raw 'old sha1'..'new sha1'
'old sha1' beeing the sha1 of the latest build.
Can you confirm there is a bug or have I something wrong in my setup ?
Thanks,
Bertrand
+1 for this feature (voting doesn't work)