Strider-CD / strider-ssh-deploy

Plugin for Strider-CD to deploy with SSH
14 stars 12 forks source link

strider is leaving old packages in /tmp #31

Open Gregy opened 8 years ago

Gregy commented 8 years ago

Hello, thank you for strider-ssh-deploy! I use it and it works very well.

However recently I noticed that it is leaving old package-* files in tmp. I deploy quite often so my /tmp has grown to a GB. Not ideal.

Thank you.

knownasilya commented 8 years ago

Can you figure out exactly what it's leaving behind?

Gregy commented 8 years ago

The files left behind are the tarballs with transfer bundles. It happens when you check the "Transfer bundle" checkbox.

Edit: example file name: /tmp/package-f41ce18a76fa8cac05c06b3ad2de7f3d.tar.gz new file with unique id is created for each deploy.

knownasilya commented 8 years ago

Looks like we probably need to have a config for "keep the last X builds" and then delete anything past those X builds using FIFO.