Docker Community Forums

Share and learn in the Docker community.

Unused capturing group in regular expression in automated build

build

#1

I don’t know how obvious it is, but after shamingly long of trying to find out why my automated build is not triggered, I discovered a problem with my regex.
When the regular expression contains capturing group i.e. “()” it must be used in the tag “{\1}” field otherwise the build is not triggered.

If you don’t need to capture the group, you need to use non-capturing group “(?: )”.

If it’s not a bug, it would be nice to add a comment to the documentation.

I hope this will save somebody some trouble.