Can't change primaryView after Folder is generated

53 views
Skip to first unread message

Tobias Gruetzmacher

unread,
Aug 4, 2017, 11:45:25 AM8/4/17
to job-dsl-plugin
Hi,

this is a very strange issue, probably not even in the JobDSL.

Consider this:

folder('foo') {
  primaryView
'bar'
}

listView
("foo/bar") {
  jobs
{
      regex
'.*'
 
}
}


This is probably the simplest example of a folder, an additional listView in that folder, which SHOULD be set as the primary view in that folder. It works in testcases, generates the correct XML and is correct when run on a "fresh" Jenkins.

When run on a Jenkins instance where 'foo' already exists, the primary view is not updated...

Any ideas?

Regards, Tobias

Daniel Spilker

unread,
Sep 7, 2017, 3:52:46 PM9/7/17
to job-dsl...@googlegroups.com
Ha, interesting. I can reproduce the problem, but I have no idea what's causing it.

Please file an issue in JIRA (job-dsl component)
https://issues.jenkins-ci.org/

Daniel


--
You received this message because you are subscribed to the Google Groups "job-dsl-plugin" group.
To unsubscribe from this group and stop receiving emails from it, send an email to job-dsl-plugin+unsubscribe@googlegroups.com.
To post to this group, send email to job-dsl-plugin@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/c34a7c97-ae44-49c1-82d1-b21809a8ad06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages