[JIRA] [job-dsl-plugin] (JENKINS-29784) DSL Job View shows many copies of Generated Items

3 views
Skip to first unread message

itait@us.ibm.com (JIRA)

unread,
Aug 4, 2015, 11:27:02 AM8/4/15
to jenkinsc...@googlegroups.com
Ian Tait created an issue
 
Jenkins / Bug JENKINS-29784
DSL Job View shows many copies of Generated Items
Issue Type: Bug Bug
Assignee: Daniel Spilker
Attachments: Screenshot.png
Components: job-dsl-plugin
Created: 04/Aug/15 3:26 PM
Environment: Job DSL plugin version 1.35
Jenkins version 1.612
Labels: DSL View
Priority: Minor Minor
Reporter: Ian Tait

I am creating a DSL job that creates and administrates the building of 3 other jobs. I want to watch the progress of each job's build, and when one finishes successfully, create the next job and kick off a build, then watch it and so on. I have done this successfully by creating 3 separate DSL scripts in the DSL job, which are separated by a groovy script in between that watches and waits for each job to finish as it is created and built. However, doing so creates multiple copies of "Generated Items" on the main view of the DSL job (picture attached). Based on what I can tell, it seems that if you create multiple jobs within one DSL script, this does not happen, but only when you create jobs with multiple different DSL scripts in the same DSL job.

This is a small issue but eventually I hope to have a DSL job that created many more than just 3 other jobs, doing this would greatly clutter the DSL job's view. I hope this is an easy thing to fix!

Thank you!

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

lvotypko@redhat.com (JIRA)

unread,
Jul 25, 2019, 8:44:03 AM7/25/19
to jenkinsc...@googlegroups.com
Lucie Votypkova commented on Bug JENKINS-29784
 
Re: DSL Job View shows many copies of Generated Items

Hello,

I fixed it in this pull request https://github.com/jenkinsci/job-dsl-plugin/pull/1190.

Your problem is caused by multiple job-dsl build step - everyone adds its own action - so there is many actions of added items instead of one action with all. I changed it the way that if action for given build exists, it is not added the new one - new generated objects are included by the old one. 

It should fix the problem with removing all jobs (views...) created by previous steps when Action for removed job/views/config is checked.

This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

mail@daniel-spilker.com (JIRA)

unread,
Aug 12, 2019, 3:10:05 AM8/12/19
to jenkinsc...@googlegroups.com
Change By: Daniel Spilker
Status: Open Fixed but Unreleased
Resolution: Fixed

mail@daniel-spilker.com (JIRA)

unread,
Mar 11, 2020, 9:43:03 AM3/11/20
to jenkinsc...@googlegroups.com
Change By: Daniel Spilker
Status: Fixed but Unreleased Closed
Released As: job-dsl 1.75
This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo
Reply all
Reply to author
Forward
0 new messages