Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using global properties or build steps in TeamCity

Tags:

teamcity

I have a lot of projects in my TeamCity server, for building and testing multiple sites. We use Selenium RC to test the sites every night, and I would like to reuse one step or configuration instead of having copies in each project.

I have looked into using Templates, but they only seem to be accessible from the project it is defined in. The same goes for properties, as I tried to put paths and some shared values in system or environment properties and using copied build steps using those shared properties.

But it all fails, as none of these methods seem to be usable across projects. How do you solve this type of issue? It must be possible somehow, right?

like image 658
Niklas Wulff Avatar asked Jun 14 '11 14:06

Niklas Wulff


Video Answer


2 Answers

As per my comments for your question you can use a single template configuration build across multiple Projects.

See TeamCity documention for information on how to do this.

like image 161
Siy Williams Avatar answered Sep 22 '22 19:09

Siy Williams


TeamCity has a new feature (as of 8.0) that supports global configs/parameters/env variables. 8.0 supports the new concept of project organization/nesting, and as part of that feature set all projects now inhert from the "Root" project. And on that root project you can specify a number of things, including parameters, etc. This does not appear to support build steps.

They documented the change in http://youtrack.jetbrains.com/issue/TW-11202.

enter image description here

--

enter image description here

like image 33
Matt Avatar answered Sep 22 '22 19:09

Matt