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. You probably want ").*"
>
>
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
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 suggestio
[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. In this
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 se
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|
] 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 pass
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
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?
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 build
10 matches
Mail list logo