1

An item with the same key has already been added for Jenkins views

Related issue: http://catlight.helprace.com/i166-multiple-jenkins-servers

We use Jenkins folders to represent branch builds of our source.  Inside each branch, there can be multiple produts and each product can have several jenkins jobs.    In order to have a single page where we can list all the builds for a particular product, we use Jenkins Views - which are configured using a regex to dynamically pickup new jobs for new branches.

Cat light however is puking with "An item with the same key has already been added " when we use the URL of the View page - presumably because it is getting confused due to duplicate names of jobs.  However I believe this is because Catlight is using the "Name" of the job, rather than the "FullName" (which contains it's full folder path and would be unique) or it's URL (which is unique). 

Work around for now is to manually configure each build I want to monitor from the top level jenkins URL, but then we need to remember to use the check boxes for the products/branches we are interested in as they are created and rendering the dynamic views useless...

1 reply

Hi Peter, thanks for the detailed problem report! 

We currently work with the main view only. There is an idea to support other views as well: http://catlight.helprace.com/i74-select-and-filter-jenkins-jobs-by-view . You can upvote it.

There is also an idea for Catlight to add and remove jobs based on regex, but looks like you have this already configured using views. http://catlight.helprace.com/i148-add-and-remove-projects-automatically