Re: Conditional Step Regular Expression Match

2016-03-08 Thread Gmail Account
Yep, that works, thanks! > On Mar 1, 2016, at 9:53 AM, Eric Pyle wrote: > > I believe the * following the closing parentheses means "zero or more > occurrences of", and in this case applies to the contents of the parentheses. > So it's matching on zero occurrences.

Re: Conditional Step Regular Expression Match

2016-03-08 Thread Eric Pyle
I believe the * following the closing parentheses means "zero or more occurrences of", and in this case applies to the contents of the parentheses. So it's matching on zero occurrences. You probably want ").*" Eric On 3/1/2016 9:20 AM, Eric Fetzer wrote: Thanks for the reply Eric! Sorry, the

Re: Conditional Step Regular Expression Match

2016-03-01 Thread Eric Fetzer
Exactly, I'm just trying to build two of the 4 possible projects based on this call. I put the comma in there for readability. The other side is the regex. The regex should always match the one with ALL in it because if I pass that, I want it to build every single one of them. Your

RE: Conditional Step Regular Expression Match

2016-03-01 Thread Matthew.Webber
[mailto:jenkinsci-users@googlegroups.com] On Behalf Of Eric Fetzer Sent: 01 March 2016 16:14 To: Jenkins Users Subject: Re: Conditional Step Regular Expression Match 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

Re: Conditional Step Regular Expression Match

2016-03-01 Thread Eric Pyle
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

Re: Conditional Step Regular Expression Match

2016-03-01 Thread Eric Fetzer
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:

RE: Conditional Step Regular Expression Match

2016-03-01 Thread Matthew.Webber
] On Behalf Of Eric Fetzer Sent: 01 March 2016 14:21 To: Jenkins Users Subject: Re: Conditional Step Regular Expression Match Thanks for the reply Eric! Sorry, the square brackets are just from the Jenkins output. My regex's look like this (4 single conditional steps based on the label passed

Re: Conditional Step Regular Expression Match

2016-03-01 Thread Eric Fetzer
Thanks for the reply Eric! Sorry, the square brackets are just from the Jenkins output. My regex's look like this (4 single conditional steps based on the label passed in build.apps): .*(NAP-Client|NAP-ALL)* .*(NAP-Server|NAP-ALL)* .*(NAP-Reports|NAP-ALL)* .*(CAS|NAP-ALL)* In this particular

Re: Conditional Step Regular Expression Match

2016-02-29 Thread Eric Pyle
Off the top of my head, the square brackets "[" and "]" are meaningful in RE syntax, representing a character class. Have you tried escaping them? On 2/29/2016 4:32 PM, 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?