Patterns in Role-based strategy

47 views
Skip to first unread message

Ginga, Dick

unread,
Sep 15, 2015, 10:32:08 AM9/15/15
to jenkins...@googlegroups.com

How can I configure roles such that “developers” CAN’T see some jobs? I see how the Pattern field can define what they can see, but how can I use it to define what they CAN’T?

 

Use case: production deployment jobs, maintenance jobs, etc.? I am pretty sure I can’t do it on a View basis but I would be OK with a job naming convention but:

 

^PROD or ^(PROD) doesn’t work

 

Dick Ginga, Informatics R&D

PerkinElmer Inc. | For the Better
HUMAN HEALTH | ENVIRONMENTAL HEALTH
940 Winter Street, Waltham MA 02451

 

dick.ginga@perkinelmer.com  

Mobile – 508-847-1434

Office – 781-663-6947

 

Ginga, Dick

unread,
Sep 15, 2015, 3:14:47 PM9/15/15
to jenkins...@googlegroups.com

Actually, what does not work is:

 

?!PROD.* = meaning anything but jobs having PROD in their name. I actually get a OOPS – stack trace when I use this

Daniel Beck

unread,
Sep 15, 2015, 3:26:32 PM9/15/15
to jenkins...@googlegroups.com

On 15.09.2015, at 21:14, Ginga, Dick <Dick....@PERKINELMER.COM> wrote:

> ?!PROD.* = meaning anything but jobs having PROD in their name. I actually get a OOPS – stack trace when I use this

You forgot the parentheses.

Ginga, Dick

unread,
Sep 15, 2015, 3:28:23 PM9/15/15
to jenkins...@googlegroups.com
I've tried them everywhere (I think) and could not get it to work

Which format:

(?!)PROD.*
(?!PROD.*)
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/C148704F-1A9B-405C-A6EC-7CF033E96E6F%40beckweb.net.
For more options, visit https://groups.google.com/d/optout.

Matthew...@diamond.ac.uk

unread,
Sep 16, 2015, 4:50:22 AM9/16/15
to jenkins...@googlegroups.com
Try (?!.*PROD).*
Matthew

-----Original Message-----
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Ginga, Dick
Sent: 15 September 2015 20:28
To: jenkins...@googlegroups.com
Subject: RE: Patterns in Role-based strategy

I've tried them everywhere (I think) and could not get it to work

Which format:

(?!)PROD.*
(?!PROD.*)

-----Original Message-----
From: jenkins...@googlegroups.com [mailto:jenkins...@googlegroups.com] On Behalf Of Daniel Beck
Sent: Tuesday, September 15, 2015 3:26 PM
To: jenkins...@googlegroups.com
Subject: Re: Patterns in Role-based strategy


On 15.09.2015, at 21:14, Ginga, Dick <Dick....@PERKINELMER.COM> wrote:

> ?!PROD.* = meaning anything but jobs having PROD in their name. I actually get a OOPS – stack trace when I use this

You forgot the parentheses.

--

--
This e-mail and any attachments may contain confidential, copyright and or privileged material, and are for the use of the intended addressee only. If you are not the intended addressee or an authorised recipient of the addressee please notify us of receipt by returning the e-mail and do not use, copy, retain, distribute or disclose the information in or attached to the e-mail.
Any opinions expressed within this e-mail are those of the individual and not necessarily of Diamond Light Source Ltd.
Diamond Light Source Ltd. cannot guarantee that this e-mail or any attachments are free from viruses and we cannot accept liability for any damage which you may sustain as a result of software viruses which may be transmitted in or with the message.
Diamond Light Source Limited (company no. 4375679). Registered in England and Wales with its registered office at Diamond House, Harwell Science and Innovation Campus, Didcot, Oxfordshire, OX11 0DE, United Kingdom

Ginga, Dick

unread,
Sep 17, 2015, 8:25:47 AM9/17/15
to jenkins...@googlegroups.com
Thank you, works
--
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 jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/6836E1DC2DDC174C9D64B7860E5AF5FCA8FE47BD%40EXCHMBX01.fed.cclrc.ac.uk.
Reply all
Reply to author
Forward
0 new messages