jonnyzzz / TeamCity.Virtual

Docker and Vagrant build runners plugin for TeamCity
http://blog.jonnyzzz.name
Apache License 2.0
84 stars 26 forks source link

how to use this plugin #48

Open shawnxue opened 7 years ago

shawnxue commented 7 years ago

Hi,

I am newbie for this plugin. Is there any wiki or documents on how to use this plugin to run a build in team city?

Thanks

Shawn

jonnyzzz commented 7 years ago

Unfortunately, not. You're very welcome to provide some documentation based on your try.

The plugin itself does the following

Note, the build runner mounts build checkout director into the container/vm and executes your script there preserving build working directory path. The runner does nothing to pass any build environment variables inside (e.g. BUILD_NUMBER or any other).

In the build script one may use TeamCity %references% to any parameters you have in the build. This makes it quite easy to pass all necessary parameters from a build agent to a container/vm that is started.

Plugin does not cover any cleanup tasks. So your build agent machine should be configures to clean older vagrant/docker images from a build agent machine to avoid out of disk space issues