How do I configure Jenkins to build to a Droplet?

May 6, 2018 1.4k views
Deployment Ubuntu 18.04


I'm currently trying to build my projects usings Jenkins. I've managed to configure Jenkins to pull from my GitLab repositories but I'm struggling to figure out a way make it build on a Droplet.

Does anyone know of any simple solutions for achieving this?


1 Answer

I have set up a Jenkins configuration that needed to build droplets on the fly. I achieved this by creating a couple scripts on the Jenkins server that I could call at build time. A more generic setup could be achieved by using doctl.

With doctl installed on your server and configured with your API keys your Jenkins instance will be able to manage droplets by running local commands.

Have another answer? Share your knowledge.