[label "OK2Build"]
function = MaxWithBlock
copyMinScore = true
value = -1 Change not approved to merge
value = 0 No Score
value = +1 Change approved to merge
branch = refs/heads/wlan_2150
branch = refs/heads/wlan_2151
branch = refs/heads/wlan_2152
branch = refs/heads/wlan_2153
HiI am trying to see if I do a regex for wlan_2150 ,wlan_2151,wlan_2152,wlan_2153 below like wlan_21* but it doesn't seem to work, is there a way to add a regx in config file?
On Wednesday, September 14, 2022 at 5:03:13 AM UTC+2 William wrote:HiI am trying to see if I do a regex for wlan_2150 ,wlan_2151,wlan_2152,wlan_2153 below like wlan_21* but it doesn't seem to work, is there a way to add a regx in config file?In the documentation for label.LABEL.branch it seems like the field only supports wildcard so "refs/heads/wlan_21*" should work but I'm guessing it is the same as for most ref-fields in the documentation:If field starts_with '^': # ^refs/heads/wlan_21.*handle_as_regexp(field)else-if field ends_with '*': # refs/heads/wlan_21*
handle_as_wildcard(field)
On Wednesday, September 14, 2022 at 5:03:13 AM UTC+2 William wrote:HiI am trying to see if I do a regex for wlan_2150 ,wlan_2151,wlan_2152,wlan_2153 below like wlan_21* but it doesn't seem to work, is there a way to add a regx in config file?In the documentation for label.LABEL.branch it seems like the field only supports wildcard so "refs/heads/wlan_21*" should work but I'm guessing it is the same as for most ref-fields in the documentation:If field starts_with '^': # ^refs/heads/wlan_21.*handle_as_regexp(field)else-if field ends_with '*': # refs/heads/wlan_21*handle_as_wildcard(field)else # refs/heads/wlan_2150handle_as_exact(field)
[label "OK2Build"]
function = MaxWithBlock
copyMinScore = true
value = -1 Change not approved to merge
value = 0 No Score
value = +1 Change approved to merge
branch = refs/heads/wlan_2150
branch = refs/heads/wlan_2151
branch = refs/heads/wlan_2152
branch = refs/heads/wlan_2153
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/3089366e-b019-4d99-b39d-d3e97d25fc0fn%40googlegroups.com.
On Wed, Sep 14, 2022 at 10:05 AM Sven Selberg <sven.s...@axis.com> wrote:On Wednesday, September 14, 2022 at 5:03:13 AM UTC+2 William wrote:HiI am trying to see if I do a regex for wlan_2150 ,wlan_2151,wlan_2152,wlan_2153 below like wlan_21* but it doesn't seem to work, is there a way to add a regx in config file?In the documentation for label.LABEL.branch it seems like the field only supports wildcard so "refs/heads/wlan_21*" should work but I'm guessing it is the same as for most ref-fields in the documentation:If field starts_with '^': # ^refs/heads/wlan_21.*handle_as_regexp(field)else-if field ends_with '*': # refs/heads/wlan_21*handle_as_wildcard(field)else # refs/heads/wlan_2150handle_as_exact(field)Normally we support 3 cases:1. exact refs (e.g. 'refs/heads/master')2. ref patterns (e.g. 'refs/heads/*', here '*' can only be used as the last path segment, i.e. the pattern must end with '/*', '*' in other places is not taken into account)3. reg exps (e.g. '^refs/heads/.*', must start with '^')
branch = ^refs/heads/wlan_2.*
On Wednesday, September 14, 2022 at 1:09:35 AM UTC-7 eke...@google.com wrote:On Wed, Sep 14, 2022 at 10:05 AM Sven Selberg <sven.s...@axis.com> wrote:On Wednesday, September 14, 2022 at 5:03:13 AM UTC+2 William wrote:HiI am trying to see if I do a regex for wlan_2150 ,wlan_2151,wlan_2152,wlan_2153 below like wlan_21* but it doesn't seem to work, is there a way to add a regx in config file?In the documentation for label.LABEL.branch it seems like the field only supports wildcard so "refs/heads/wlan_21*" should work but I'm guessing it is the same as for most ref-fields in the documentation:If field starts_with '^': # ^refs/heads/wlan_21.*handle_as_regexp(field)else-if field ends_with '*': # refs/heads/wlan_21*handle_as_wildcard(field)else # refs/heads/wlan_2150handle_as_exact(field)Normally we support 3 cases:1. exact refs (e.g. 'refs/heads/master')2. ref patterns (e.g. 'refs/heads/*', here '*' can only be used as the last path segment, i.e. the pattern must end with '/*', '*' in other places is not taken into account)3. reg exps (e.g. '^refs/heads/.*', must start with '^')I tried in both ways as below,both of them didn't work for me ,only the exact match works, am on an older version of gerrit 2.14
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/57898f73-6d1f-4377-8455-1dc3fb543078n%40googlegroups.com.
On Tue, Sep 20, 2022 at 11:09 PM William <bacha....@gmail.com> wrote:On Wednesday, September 14, 2022 at 1:09:35 AM UTC-7 eke...@google.com wrote:On Wed, Sep 14, 2022 at 10:05 AM Sven Selberg <sven.s...@axis.com> wrote:On Wednesday, September 14, 2022 at 5:03:13 AM UTC+2 William wrote:HiI am trying to see if I do a regex for wlan_2150 ,wlan_2151,wlan_2152,wlan_2153 below like wlan_21* but it doesn't seem to work, is there a way to add a regx in config file?In the documentation for label.LABEL.branch it seems like the field only supports wildcard so "refs/heads/wlan_21*" should work but I'm guessing it is the same as for most ref-fields in the documentation:If field starts_with '^': # ^refs/heads/wlan_21.*handle_as_regexp(field)else-if field ends_with '*': # refs/heads/wlan_21*handle_as_wildcard(field)else # refs/heads/wlan_2150handle_as_exact(field)Normally we support 3 cases:1. exact refs (e.g. 'refs/heads/master')2. ref patterns (e.g. 'refs/heads/*', here '*' can only be used as the last path segment, i.e. the pattern must end with '/*', '*' in other places is not taken into account)3. reg exps (e.g. '^refs/heads/.*', must start with '^')I tried in both ways as below,both of them didn't work for me ,only the exact match works, am on an older version of gerrit 2.14you should consider to upgrade to a supported version, see https://www.gerritcodereview.com/support.html
On Tuesday, September 20, 2022 at 2:39:40 PM UTC-7 Matthias Sohn wrote:On Tue, Sep 20, 2022 at 11:09 PM William <bacha....@gmail.com> wrote:On Wednesday, September 14, 2022 at 1:09:35 AM UTC-7 eke...@google.com wrote:On Wed, Sep 14, 2022 at 10:05 AM Sven Selberg <sven.s...@axis.com> wrote:On Wednesday, September 14, 2022 at 5:03:13 AM UTC+2 William wrote:HiI am trying to see if I do a regex for wlan_2150 ,wlan_2151,wlan_2152,wlan_2153 below like wlan_21* but it doesn't seem to work, is there a way to add a regx in config file?In the documentation for label.LABEL.branch it seems like the field only supports wildcard so "refs/heads/wlan_21*" should work but I'm guessing it is the same as for most ref-fields in the documentation:If field starts_with '^': # ^refs/heads/wlan_21.*handle_as_regexp(field)else-if field ends_with '*': # refs/heads/wlan_21*handle_as_wildcard(field)else # refs/heads/wlan_2150handle_as_exact(field)Normally we support 3 cases:1. exact refs (e.g. 'refs/heads/master')2. ref patterns (e.g. 'refs/heads/*', here '*' can only be used as the last path segment, i.e. the pattern must end with '/*', '*' in other places is not taken into account)3. reg exps (e.g. '^refs/heads/.*', must start with '^')I tried in both ways as below,both of them didn't work for me ,only the exact match works, am on an older version of gerrit 2.14you should consider to upgrade to a supported version, see https://www.gerritcodereview.com/support.htmlThanks, will do, is there support in future gerrit versions to update the gerrit config files automatically ?any API's are CLI method do facilitate these?
On Friday, September 23, 2022 at 4:58:07 PM UTC-7 William wrote:On Tuesday, September 20, 2022 at 2:39:40 PM UTC-7 Matthias Sohn wrote:On Tue, Sep 20, 2022 at 11:09 PM William <bacha....@gmail.com> wrote:On Wednesday, September 14, 2022 at 1:09:35 AM UTC-7 eke...@google.com wrote:On Wed, Sep 14, 2022 at 10:05 AM Sven Selberg <sven.s...@axis.com> wrote:On Wednesday, September 14, 2022 at 5:03:13 AM UTC+2 William wrote:HiI am trying to see if I do a regex for wlan_2150 ,wlan_2151,wlan_2152,wlan_2153 below like wlan_21* but it doesn't seem to work, is there a way to add a regx in config file?In the documentation for label.LABEL.branch it seems like the field only supports wildcard so "refs/heads/wlan_21*" should work but I'm guessing it is the same as for most ref-fields in the documentation:If field starts_with '^': # ^refs/heads/wlan_21.*handle_as_regexp(field)else-if field ends_with '*': # refs/heads/wlan_21*handle_as_wildcard(field)else # refs/heads/wlan_2150handle_as_exact(field)Normally we support 3 cases:1. exact refs (e.g. 'refs/heads/master')2. ref patterns (e.g. 'refs/heads/*', here '*' can only be used as the last path segment, i.e. the pattern must end with '/*', '*' in other places is not taken into account)3. reg exps (e.g. '^refs/heads/.*', must start with '^')I tried in both ways as below,both of them didn't work for me ,only the exact match works, am on an older version of gerrit 2.14you should consider to upgrade to a supported version, see https://www.gerritcodereview.com/support.htmlThanks, will do, is there support in future gerrit versions to update the gerrit config files automatically ?any API's are CLI method do facilitate these?Gentlemen,Any word on this?