Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
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.
When you have installed jenkins in the DO droplet, you will have an user jenkins in your system. Use that user to run a shell script to build and run the project after pulling latest code from repository.
here are the steps:
su jenkinsssh-keygen -t rsacat ~/.ssh/id_rsa.pubsu ,replace <DEV-SERVER-USER> with your user that belongs to your development servernano ~/.ssh/authorized_keys
In this way, the jenkins will be able to log into your droplet and do exactly the things you would do by writing manual commands.chmod +x scriptnamethere might be some issues regarding the ssh to your repository , in that case if you cannot solve it by yourself, you may try eval `ssh-agent```` and then run ssh-add ~/.ssh/id_rsa.pub``` .
Hope it helps.