I have two build-projects which use the code from the same git-repository.
Project 1 shall be triggered immediately when new changes are pushed to the git-repository.
This works as expected by setting up a post-receive hook and enabling SCM polling (without setting any time).
Project 2 shall be triggered nightly but only if changes where pushed to the git-repository since the last build.
This does work in general as expected: After configuring SCM polling with a specific time, the build gets triggered at night if changes were pushed to the git-repository and will not be triggered if no new changes were pushed since the last successful run. (So far, so good.)
However, because of the post-receive hook I set up for project 1 this project 2 will also get triggered every time new commits were pushed to the repository. This, of course, is not what I wanted.
In project 2's configuration of SCM-polling I also enabled the checkbox "Ignore post-commit hooks" which obviously should prevent this behavior. However, as the comment states, the SCM-plugin must also support this setting.
Could it be that the git-plugin does not check this "Ignore post-commit hooks" setting and therefore ignores it?
Would it be possible to implement the correct behavior and do not trigger a build if the checkbox is checked?
|