Re: Problem creating view programatically

2013-09-26 Thread Rui Fernando Hayashi
It worked! My jenkins version is 1.513. Thank you so much! Rui On Thu, Sep 26, 2013 at 1:15 AM, Daniel Beck m...@beckweb.net wrote: It helps if you mention the Jenkins version. On 1.509.3, the following works: def listView = new ListView(my-view, Jenkins.instance) listView.includeRegex

Problem creating view programatically

2013-09-25 Thread Rui Fernando Hayashi
Hi I'm trying to create a view programatically using code like this: def listView = new ListView(my-view, Jenkins.instance) listView.includeRegex = myregex Jenkins.instance.addView(listView) Jenkins.instance.save() The view is created, but the jobs that match the regex are not listed. The jobs

Re: Problem creating view programatically

2013-09-25 Thread Daniel Beck
It helps if you mention the Jenkins version. On 1.509.3, the following works: def listView = new ListView(my-view, Jenkins.instance) listView.includeRegex = pattern listView.includePattern = java.util.regex.Pattern.compile(pattern) Jenkins.instance.addView(listView) Jenkins.instance.save()