-
Bug
-
Resolution: Fixed
-
Minor
-
None
I have a suite of 40 test jobs.
These are all set up to poll my Github (Enterprise) repository every 5 minutes.
I recently went in and did a mass edit of my jobs using Configuration Slicer.
Before using Configuration Slicer, my jobs all had the "Ignore post-commit hooks" checkbox checked.
I saved my changes, and then rebooted Jenkins, and noticed all of my polled builds ran. This should not have happened.
I went into my projects and found that the checkbox had become unchecked.
Yes, SCMTrigger now has two constructors. Configuration slicing uses the older one, which defaults the "Ignore post-comits hooks" value to 'false'.
To fix this, we will need to include the post-commit hooks option in the configuration slice spec. I played around with some ideas here last night, but didn't get something that worked well. The current design doesn't handle this well, so I think the slicing logic will need more parameterization to make this work.