Skip to content

SEVERE: Unable to created directory /HUDSON_ROOT_DIR/data_restore #2

Open
@jrichardsz

Description

@jrichardsz

Im working in openshift. I have a Jenkins and when I execute a restore operation I have this error

2016-07-20 18_22_08-zoomit zoom window

This is due to in openshift we have not root permissions in all folders. I think this will be possible
not only in openshift ( folder permissions )

So instead of

task = new RestoreTask(configuration, Hudson.getInstance().getRootDir().getAbsolutePath(), filePath, getRestoreLogFile().getAbsolutePath(), res.getServletContext());

it would be great something like :

task = new RestoreTask(configuration, RESTORE_TEMP_PATH, res.getServletContext());

and add an option in the UI so the user may configure. Or maybe use the BACKUP_PATH.

Java file :
https://github.com/hudson3-plugins/backup-plugin/blob/master/src/main/java/org/jvnet/hudson/plugins/backup/BackupLink.java

doRestoreFile method

Thanks for this plugin!!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions