Catalog Build Step Requirements

Hello.
Is it possible to pull the Build Step Requirements for Projects in TC?
I can see Agent Requirements, but not the Step Requirements.

So given we have 100's of projects and 10's of build agents.  And multiple years of toolset divergence on the Agents (tools being installed manually so tools are all over the place), different Frameworks, nodejs versions, etc….
We need to preform a OS updates on the build agents.  So we need to rebuild agents.
So now would be a good time to adjust the toolsets installed on the Agents,  remove versions of Frameworks that are no longer needed…
Is there a way to pull all the Build Step Requirements for our Projects?  So we can come up with a Tools Requirement sheet to rebuild our Build Agents to?

This is using the API,  for instance : 
https://teamcity/app/rest/buildTypes/id:<name>
will show Agent Requirements, where are Build Step Requirements?

0
4 comments

Is this possible @... ?

0

Hello Jesse,

If a build step imposes an agent requirement, it will end up in agent requirements for the whole build - unfortunately, there is no way to fetch that info for a single step. Can you please let me know why do you need the requirements for specific build steps, if you aim to gather all unique requirements across the board? 

0

Yes, we have a couple 100's builds in TeamCity and we need to rebuild our build agents.
We would like to build the tooling on the Agents to what the Project Requirements are…  
How would we go about programmatically pulling those Project Requirements of the build agents?

0

Hello Jesse,

You may use the following REST API request:

GET <TeamCity URL>/app/rest/buildTypes?fields=buildType(id,name,agent-requirements(agent-requirement(id,type,disabled,inherited,properties(*))))

It will yield a list of all build configurations and their agent requirements. 

0

Please sign in to leave a comment.