jenkinsci / hetzner-cloud-plugin

Hetzner cloud integration for Jenkins
https://plugins.jenkins.io/hetzner-cloud/
Apache License 2.0
24 stars 8 forks source link

Support attaching volumes to a server #71

Closed marvinruder closed 1 year ago

marvinruder commented 1 year ago

What feature do you want to see added?

Persisting caches beyond the lifetime of a cloud agent may significantly improve performance of builds directly after provisioning. This can be achieved by using Hetzner’s Block Storage Volumes. They are accessible both via REST API (while creating a server and as a separate endpoint) and CLI.

A possible implementation would look like this:

Upstream changes

The Java Hetzner Cloud Client would likely need to be extended.

rkosegi commented 1 year ago

Hi @marvinruder, thank you for feature request. If implemented this way, you can effectively provision just single VM, right? (you can't attach volume to multiple servers at once) It shouldn't be too hard to implement it though.

marvinruder commented 1 year ago

If implemented this way, you can effectively provision just single VM, right? (you can't attach volume to multiple servers at once)

Yes, that is correct, I updated the description above to include that.

rkosegi commented 1 year ago

@marvinruder new release should support this feature.

marvinruder commented 1 year ago

Thanks, works as expected!