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

2 views
Skip to first unread message

natasha.stopa@gmail.com (JIRA)

unread,
Jul 24, 2019, 8:37:02 PM7/24/19
to jenkinsc...@googlegroups.com
Natasha Stopa created an issue
 
Jenkins / Task JENKINS-58652
Cleanup Original Directory if Errors
Issue Type: Task Task
Assignee: Natasha Stopa
Components: plugin-installation-manager-tool
Created: 2019-07-25 00:36
Labels: gsoc-2019 plugin-manager
Priority: Minor Minor
Reporter: Natasha Stopa

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.

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. 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)
Reply all
Reply to author
Forward
0 new messages