-
Notifications
You must be signed in to change notification settings - Fork 182
Jobs not matching branch regex are deleted #21
Comments
If that's the behavior that's happening, I agree that it's a bug. I won't have time to look at it till this weekend, but will test and fix any issues then. |
Sorry about the delay getting back to this. I could be missing something, but I'm not able to reproduce the behavior that you're seeing. I've added a test (referenced in the above commit, 7b849d1) that uses the regex filter that you're specifying and it does do the filter appropriately only down to those branches that start with If I change the filter to something else, like If you run it with the |
Thanks for taking your time to look at this! The branch we had was actually called only |
I just tried it out and I can reproduce with a job named
The job that Maybe I'm missing something in the documentation that branches named |
It seems to delete jobs based on the prefix you give it rather than the whole regex including branch name. In my set up I found that jobs with the same prefix were deleted even though the regex didn't match the job name. |
This has bitten me too. If I remove "release" from: thinking that I'd like it to ignore the release branches, because they are precious and I'd like to always keep them around, but instead, it deletes them all. - exactly what I did not want to happen. A serious WTF moment. |
When using
-DbranchNameRegex=feature\/.+
as branch matching expression, branches named something else are deleted. I would expect only branches matchingbranchNameRegex
would be created and deleted.For example, if a template job exists named
myproj-build-master
and the branch regex is set tofeature\/.+
, then a manually created job namedmyproj-build-release
is deleted.The text was updated successfully, but these errors were encountered: