Skip to content

Temp archive is not removed on self-hosted agent #203

Open
@ArtemGoutsoul

Description

@ArtemGoutsoul

When a self hosted agent is used, a temporary tar file is not removed after copying to target server

drone-scp version: 1.8.0
tar all files into /tmp/aQdQqvYKCM.tar.gz
remote server os type is unix
scp file to server.
create folder /xxx/yyy
untar file aQdQqvYKCM.tar.gz
remove file aQdQqvYKCM.tar.gz

As we see, it's only removed on the target server, not the agent.

This causes the self hosted agent to run out of disk space eventually.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions