Git Product home page Git Product logo

digitalocean-teamcity-plugin's Introduction

This is a TeamCity Cloud Plugin that provides integration with Digital Ocean and allows running build agents in Cloud.

Build Status

Download latest release

Compatible with TC9 and TC10 Stay curious and test on modern TC versions. It should work either. Tested on new version and it seems working? - Report here and be the most appreciated contributor!

Build plugin

The easiest way is to build plugin with Gradle

git clone https://github.com/graf/digitalocean-teamcity-plugin.git
cd digitalocean-teamcity-plugin
./gradlew build
cd plugin-digitalocean-server/build/distributions

Install and setup plugin on the server

  • Shutdown TeamCity
  • Copy digitalocean-cloud.zip to the folder $TEAM_CITY_HOME/plugins
  • Start TeamCity again
  • Go to Server Administration - Agent Cloud at the left menu
  • Click Create new profile
  • Specify build agent idle time
  • Select Digital Ocean Cloud
  • Enter you API key
  • Enter Image name, use your snapshot name in DigitalOcean
  • Enter ssh key name that you want to install on the client
  • Select region where you instance will be running (Check manually that snapshot is available in this zone)
  • Select size of your future instance
  • Click Save and make sure that there are no errors
  • For the first time client created TeamCity tries to create an instance in cloud, so verify that everything is OK and new instance has actually appeared in your Digital Ocean's account.

Install and configure plugin on the client

  • Setup your testing environment and install build agent as described in TeamCity's documentation
  • Edit file $BUILD_AGENT_INSTALL_PATH/conf/buildAgent.properties
  • Find digitalocean-cloud.image.id property and set it to the specific image (aka DigitalOcean's snapshot) that you gonna use. Use name of your snapshot as Image Id.
  • Setup URL to your TeamCity server
  • Make sure that authorization_token is not set
  • Setup any other properties as you want
  • Run buildAgent and wait until it connects to the server. During the first run it may download a plenty of plugins from TeamCity server.
  • When you are sure that agent and instance are configured properly, shutdown agent and instance.
  • Edit buildAgent.properties and remove clean-up authorization_token and name
  • Shutdown instance and run it again to ferify that agent run automatically with system start
  • Edit buildAgent.properties and clean-up authorization_token and name. Do not forget check it
  • Shutdown instance
  • Make snapshot and name it the same title as digitalocean-cloud.image.id is You have just set up an cloud agent, have fun!

License

You may do what ever you like with those sources. Or I could also say the license is MIT.

digitalocean-teamcity-plugin's People

Contributors

benesch avatar graf avatar igrybkov avatar sandcastle avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.