Question

Jenkins plugin ?

  • Posted June 25, 2013

Many companies use Jenkins for CI. Jenkins has a pretty nifty EC2 plugin which basically allows you to provision EC2 instances as job are started.

It would be great if digital ocean has something similar. I would definitely use it if there was a Jenkins plugin.

Subscribe
Share

Submit an 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 know, pretty late, but you know that there’s a jenkins plugin for exactly this task:

https://wiki.jenkins-ci.org/display/JENKINS/DigitalOcean+Plugin

It’s now perfect but I’ve taken over maintenance and for now at least it seams to work correctly again! New features will be added over the next weeks/month as my time allows and/or my real-life-job requires. Ideas and (especially) help is very welcomed.

This comment has been deleted

The JClouds Plugin (https://wiki.jenkins-ci.org/display/JENKINS/JClouds+Plugin) recently added support for Digital Ocean as a provider. <br> <br>Because the plugin seems to just be an abstraction over the jclouds library, many of the field names do not map directly across. Plus, you need to use either DO’s API or look at the Image page’s source to get the image_id. <br> <br>Give me a shout if you think a tutorial on DO would be useful.

I was looking for DO plugins for Jenkins and found this thread. <br> <br>One possible solution is to use Jenkins Vagrant plugin (https://wiki.jenkins-ci.org/display/JENKINS/Vagrant+Plugin) with Digital Ocean Vagrant Plugin (https://github.com/smdahlen/vagrant-digitalocean). <br> <br>There is a short screencast demonstrating it here: http://youtu.be/2o590cmra0g

Our current API only supports GET. To create a droplet you have to do a GET request to api.digitalocean.com/droplets/new

@Kamal, <br>I looked at the API on <br>https://api.digitalocean.com/ <br> <br>I am not sure how you would provision a VM if the API only provides GET methods. I can’t imagine creating anything without some POST methods

@Christian <br>This would be similar to the EC2 plugin. Ideally there should also be something similar to cloudformation plugin but EC2 would be a very good start. <br> <br>Many developers use Jenkins in their environment for CI. If there was a plugin for Jenkins, we simply write a simple job that compiles/builds codes and deploys it automatically to digitalocean for testing.

I like this idea… how would you imagine this to work? similar to EC2 plugin or something basic where you could just spin up an image as a build slave?

There isn’t a Jenkins plugin that I know of, however we provide an API so you can build one yourself if you want to: <br> <br>https://api.digitalocean.com/