[JIRA] (JENKINS-58652) Cleanup Directory if Errors

5 views
Skip to first unread message

natasha.stopa@gmail.com (JIRA)

unread,
Jul 24, 2019, 8:38:02 PM7/24/19
to jenkinsc...@googlegroups.com
Natasha Stopa updated an issue
 
Jenkins / Task JENKINS-58652
Cleanup Directory if Errors
Change By: Natasha Stopa
Summary: Cleanup Original Directory if Errors
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

natasha.stopa@gmail.com (JIRA)

unread,
Jul 24, 2019, 8:40:02 PM7/24/19
to jenkinsc...@googlegroups.com
Natasha Stopa updated an issue
If there are any errors while using the plugin management tool, it will exit.  For docker images, the image won't be able to be created if there's an error. However, if a user is running the tool locally, this could leave the set of plugins in the plugin directory in an inconsistent state, in which not all necessary dependencies for a particular plugin were able to be downloaded. Currently, no newly downloaded plugins are deleted if the tool fails. There are a couple options to clean up the plugin directory in the case of an error .

1) The tool could keep track of if all of a particular plugin's dependencies were downloaded, and if so, keep that plugin and its dependencies in the directory, but delete plugins whose dependencies were not fully downloaded. 

2) Another option could be to keep track of the initial state of the plugin directory, and if there are any errors, delete all of the newly downloaded plugins and restore the original directory contents. 

o.v.nenashev@gmail.com (JIRA)

unread,
Jul 30, 2019, 3:29:34 AM7/30/19
to jenkinsc...@googlegroups.com
Oleg Nenashev updated an issue
Change By: Oleg Nenashev
Sprint: GSoC 2019. Coding Phase 2 , GSoC 2019. Coding Phase 3
Reply all
Reply to author
Forward
0 new messages