Is there a way to specify a view be created into a nested hierarchy?

878 views
Skip to first unread message

Doug Lethin

unread,
Feb 20, 2015, 8:19:04 PM2/20/15
to job-dsl...@googlegroups.com
I see that I can create views of a type "NestedView", and add sub views.

What I was looking for is a way to create a view but rather than put it at the top-level, add the new view as a child of a nested view that already exists. Is that possible?

For context, I have a Jenkins Job that has a has a JobDsl build step which takes some parameters.  These parameters are fed into my JobDsl script, and a series of jobs are created, connected to eachother in upstream/downstream relationships, and then a build-view-pipeline is also created pointing to the first job in my new pipeline.   We will use this to script repeatedly as we onboard new projects into or jenkins infrastructure.  However, every time we run this, a new view tab is created on the jenkins start page.

I've created a "Project Pipelines" nested view, and I want all my new views to become a child of that view so my main page of jenkins doesn't get so cluttered.

Is this possible?

Thanks.

Doug Lethin

Patrick van Dissel

unread,
Feb 20, 2015, 8:35:30 PM2/20/15
to job-dsl...@googlegroups.com
Do you have some kind of base configuration on which all jobs are
created? If so, then just re-create all jobs on each seed run.

For the views, this is what we use:
-
https://github.com/pvdissel/talk-jenkins-jobdsl/blob/master/demos/03-ci%2B%2B-setup/src/main/groovy/tld/company/taxp/view/TeamViewsCreator.groovy

For a complete image on how we do it, you can look at:
-
https://github.com/pvdissel/talk-jenkins-jobdsl/tree/master/demos/03-ci%2B%2B-setup

Explanation on the repo and a companion presentation can be found at:
- https://github.com/pvdissel/talk-jenkins-jobdsl

Hope this helps you,
Patrick
> --
> 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-plugi...@googlegroups.com
> <mailto:job-dsl-plugi...@googlegroups.com>.
> To post to this group, send email to job-dsl...@googlegroups.com
> <mailto:job-dsl...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/job-dsl-plugin/1e58fdb4-49d8-44cc-80df-707c8c626f33%40googlegroups.com
> <https://groups.google.com/d/msgid/job-dsl-plugin/1e58fdb4-49d8-44cc-80df-707c8c626f33%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Doug Lethin

unread,
Feb 23, 2015, 10:02:40 AM2/23/15
to job-dsl...@googlegroups.com
This does indeed help in various ways, Patrick. Switching over to having all our jobs configured on every seed job is potentially a next step in our evolution.  Perhaps we have to get there before we can do what we want with the nested views.

I did watch your youtube presentation and wanted to explore further getting your docker demos up and running.  However, I'm having trouble getting the demos up and running -- most likely because my as of yet limited experience with docker.  Will try to continue troubleshooting.  Thanks again.

Doug Lethin


You received this message because you are subscribed to a topic in the Google Groups "job-dsl-plugin" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/job-dsl-plugin/f9-0Qf4hwYs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to job-dsl-plugi...@googlegroups.com.
To post to this group, send email to job-dsl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/job-dsl-plugin/54E7E0DE.8030502%40gmail.com.
Reply all
Reply to author
Forward
0 new messages