Obtain build dependency information from TC ?

Hello,

can i somehow programmatically obtain information about project dependencies from Teamcity ?
I'd like to know for each build configuration upon which other configurations it depends (filtered by snaphot or artifact dependency).

I looked into the REST Api, but could not find how to query for this information.

Any ideas are welcome.
Lars

3 comments
Comment actions Permalink

Lars,

For now the most easy approach is to write your own Java plugin for the server and expose the necessary information in it. You can probably base your plugin on REST API plugin and add the necessary functionality.

This can probably be added to the REST plugin in the next releases, feel free to post a feature request. If it is urgent for you I can probbaly try to add this and see if it will work with 5.0.2...

BTW, can you share why do you need to extract the information?

0
Comment actions Permalink

Hello,

thanks for the information. I had a look at the project configuration XML file and it might be useful for me to work with as well.

I am interested in visualizing the build configuration dependencies in a graph where each node is a project with a red or green box depending on its status.

Lars

0
Comment actions Permalink

Lars,

You are right, parsing project-config.xml might be an option.

Please consider sharing the results of your work with other TeamCity users, if that is acceptable.

0

Please sign in to leave a comment.