I think you can set the fields directly

def regexp = "^dupa123"
d1e35.includeRegex = regexp
d1e35.includePattern = Pattern.compile(regexp)

On Tue, Jan 20, 2015 at 9:58 AM, Łukasz Tasz <[email protected]> wrote:

> Hi All!!
>
> I have a question, since you about view-section-plugin.
>
> I would like to create list-view-section in a automated way - not
> using gui, just from script console,
> so far so good:
>
> d1e28=new SectionedView("test section")
> d1e28.initSections()
> d1e35=new ListViewSection("STATUS", SectionedViewSection.Width.
> FULL,
> SectionedViewSection.Positioning.CENTER)
>
> I have sectioned view, at least one section but I don't have regex...
> //d1e35.setIncludeRegex("^dupa123")
>
> is not avaliable - since SectionedViewSection dont extend ListView,
> I'm not java expert, but as I see ListViewSection has inside
> DesctriptorImpl which extends SectionedViewSectionDescriptor which in
> constructor reads regex from "magic stapler" (maybe only for me :D )
>
> Do you have any clue how I should proceed? should I implement
> sectionedViewSectionDescriptor constructor which takes not "stapler"
> but regex? Unfortunately this plugin is only gui oriented - at least
> what I see...
>
> thanks in advance & regards
> Lukasz
>
> --
> You received this message because you are subscribed to the Google Groups
> "Jenkins Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/jenkinsci-dev/2b5d54c5-2a01-49b0-a913-579eed3a0a77%40googlegroups.com
> <https://groups.google.com/d/msgid/jenkinsci-dev/2b5d54c5-2a01-49b0-a913-579eed3a0a77%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Robert Sandell
*Software Engineer*
*CloudBees Inc.*

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/CALzHZS06dh50dLWKW-JygSS2BMXwLm0-X%2By0-qnQ6u9-ua7h-g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to