You need ".*" instead of "+" after the close parentheses. Otherwise you are only able to match the second entry in your label, because you are not allowing anything after the matched label.

Eric

On 3/1/2016 11:14 AM, Eric Fetzer wrote:
Thanks for your response Matthew! With your change, we seem to be a lot closer. I have from 1 to 4 conditional projects to call. In this particular build, I'm telling it to do 2 of the 4. Here's what it did based on the condition:

Regular expression run condition: Expression=[.*(NAP-Client|NAP-ALL)+], Label=[NAP-Client,NAP-Server] Run condition [Regular expression match] preventing perform for step [Trigger/call builds on other projects] *Didn't go into this one which it should have* Regular expression run condition: Expression=[.*(NAP-Server|NAP-ALL)+], Label=[NAP-Client,NAP-Server] *Went into this one as it should have* Run condition [Regular expression match] enabling perform for step [Trigger/call builds on other projects]
Returning node parameter for master
Waiting for the completion of _NAP-Server_ <http://nd100bd001:8080/job/NAP-Server/> _NAP-Server #98_ <http://nd100bd001:8080/job/NAP-Server/98/> completed. Result was SUCCESS Regular expression run condition: Expression=[.*(NAP-Reports|NAP-ALL)+], Label=[NAP-Client,NAP-Server] *Didn't go in as it shouldn't have* Run condition [Regular expression match] preventing perform for step [Trigger/call builds on other projects] Regular expression run condition: Expression=[.*(CAS|NAP-ALL)+], Label=[NAP-Client,NAP-Server] *Didn't go in as it shouldn't have* Run condition [Regular expression match] preventing perform for step [Trigger/call builds on other projects] Warning: you have no plugins providing access control for builds, so falling back to legacy behavior of permitting any downstream builds to be triggered

Is it having a problem with the ".*" because NAP-Client occurs at the beginning of the line?


On Monday, February 29, 2016 at 2:32:08 PM UTC-7, Eric Fetzer wrote:

    I don't understand why the following is a match for my regex.  Can
    someone tell me what makes it a match?

    Regular expression run condition:
    Expression=[.*(OIS-Reports|OIS-ALL)*], Label=[OIS-Client,OIS-Server]
    Run condition [Regular expression match] enabling perform for step
    [Trigger/call builds on other projects]

    Thanks,
    Eric

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected] <mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6ec0376a-6168-49ca-b9e5-d80a85ffd4f3%40googlegroups.com <https://groups.google.com/d/msgid/jenkinsci-users/6ec0376a-6168-49ca-b9e5-d80a85ffd4f3%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Jenkins 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/56D5C662.6070109%40cd-adapco.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to