[JIRA] (JENKINS-44681) JobDSL Folder Creation Destroys Credentials

12 views
Skip to first unread message

marcus.a.philip@gmail.com (JIRA)

unread,
Jan 14, 2019, 5:25:02 AM1/14/19
to jenkinsc...@googlegroups.com
Marcus Philip commented on Bug JENKINS-44681
 
Re: JobDSL Folder Creation Destroys Credentials

I think it's incorrect to close this as not a defect. It's not how JobDSL works in general in other cases. Normally it's idempotent. Also the jobDSL folder docs in api viewer says: "Creates or updates a folder".

Please reconsider.

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

juergen.bobinger@bmw.de (JIRA)

unread,
Feb 7, 2019, 6:58:02 AM2/7/19
to jenkinsc...@googlegroups.com

Thanks Daniel Spilker for your solution. That worked out quite well in my case.

Kind regards

Jürgen

highwayoflife@gmail.com (JIRA)

unread,
Apr 12, 2019, 3:38:03 PM4/12/19
to jenkinsc...@googlegroups.com

We're running into this bug as well, can this be re-opened please? Running "folder()" on an existing folder shouldn't wipe out all metadata attached to the folder. This includes views and folder scoped credentials. 

Thanks!

omit.rathore@gmail.com (JIRA)

unread,
Jun 14, 2019, 2:50:02 PM6/14/19
to jenkinsc...@googlegroups.com

This is a bug , folder meta data should remain as is

omit.rathore@gmail.com (JIRA)

unread,
Jun 14, 2019, 2:51:03 PM6/14/19
to jenkinsc...@googlegroups.com
Omit Rathore reopened an issue
 

Please provision a way to ignore existing folder

Jenkins / Bug JENKINS-44681
Change By: Omit Rathore
Resolution: Not A Defect
Status: Closed Reopened

omit.rathore@gmail.com (JIRA)

unread,
Jun 14, 2019, 2:51:04 PM6/14/19
to jenkinsc...@googlegroups.com
Omit Rathore updated an issue
Change By: Omit Rathore
Comment:
This is a bug , folder meta data should remain as is

naresh.rayapati@gmail.com (JIRA)

unread,
Feb 7, 2020, 4:51:06 AM2/7/20
to jenkinsc...@googlegroups.com
Naresh Rayapati commented on Bug JENKINS-44681
 
Re: JobDSL Folder Creation Destroys Credentials

I also vote for updating folder properties vs overwriting those. Please add this support. Thanks a bunch in advance.

This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

riccardo.boettcher@tngtech.com (JIRA)

unread,
Apr 7, 2020, 3:47:03 PM4/7/20
to jenkinsc...@googlegroups.com

 I would also favor an update / merge strategy instead of an hard override. Otherwise it becomes impossible to let users enter the credentials in the live system while maintaining the basic structure of folders via JobDSL.

This message was sent by Atlassian Jira (v7.13.12#713012-sha1:6e07c38)
Atlassian logo

mramaraju0461@outlook.com (JIRA)

unread,
Apr 24, 2020, 1:25:03 PM4/24/20
to jenkinsc...@googlegroups.com

That worked for me. One suggestion, use getItemByFullName() instead of getItem() to capture the credentials at sub folder level

Reply all
Reply to author
Forward
0 new messages