Just in case somebody will look for example as I was looking for:

   hudsonInstance = hudson.model.Hudson.instance
   testView=new hudson.model.ListView("test1")

   testView.includeRegex="gts.*"
   testView.readResolve()
   hudsonInstance.addView( testView )

2012/2/29 Tomasz Majchrowski <[email protected]>:
> Hi,
>
> First of all, let me say hello everyone. This is my debut on the
> group of this great product. I was try to ask this question on
> users group, but this one may be better
>
> I've got a question related to set view parameters.
> The following groovy code will create view. Could anyone
> send me example how to set regularExpressions that will
> match particular jobs for this view.
> /*
> *************************************************************************
> */
> hudsonInstance = hudson.model.Hudson.instance
> hudsonInstance.addView( new hudson.model.ListView("test1") )
>
> Best regards, Tomasz Majchrowski.

Reply via email to