On 22.07.2014, at 09:00, Mark Syms <[email protected]> wrote:
> The help indicates that (?!_Nightly) should be the magic regex that is needed
> but I either end up with nothing selected or every build selected.
>
> Does this negative readahed regex actually work for filtering jobs or am I
> just doing it wrong?
There's a difference between lookahead (something not preceded by something
else) and lookbehind (something not followed by something else). The example is
a negative lookahead, in your situation you need negative lookbehind. The
following should work:
.*(?<!_Nightly)
You could also install View Job Filters plugin and define the view in terms of
the other view ("Other Views Filter", include unmatched; or "Unclassified
Jobs"). These may have problems in some permissions configurations though.
--
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].
For more options, visit https://groups.google.com/d/optout.