TeamCity On-Premises 2022.04 Help

Entity IDs

An ID is an identifier given to TeamCity entities (projects, build configurations, templates, VCS roots, and so on).

Each entity has two identifiers:

External IDs

The so-called external identifiers are configured in the TeamCity web UI (for example, Project ID) and must be unique within all the objects of the same type on the entire server. Build configurations and templates share the same ID space.

IDs can contain only alphanumeric characters and underscores (_) — maximum 80 characters — and should start with a Latin letter.

Using External IDs

External IDs are used:

Assigning External IDs

By default, TeamCity automatically suggests an ID for an object by converting its name to match the ID requirements and prefixing that with the ID of the parent project. The ID can be modified manually.

It is recommended to leave the automatically generated IDs as is unless there are special considerations to modify them.

If you consider moving projects between several TeamCity server installations, it is a good practice to make sure that all the IDs are globally unique.

To reset the IDs to match the default scheme for all projects, VCS roots, build configurations, and templates, use the Bulk Edit IDs action on the Administration page of the parent project. To use the automatically generated ID after it has been modified or after you change an existing object name, you can regenerate ID using the Regenerate ID action.

When you copy a project, TeamCity automatically assigns new IDs to all the child elements. The IDs can be previewed and changed in the Copy dialog. When you move an object, its ID is preserved and you might want to use Regenerate ID action to make the ID reflect the new placement.

Universally Unique IDs

TeamCity projects, build configurations, and VCS roots have a UUID which is an automatically generated, globally unique ID. UUID is stored in the corresponding entity XML configuration file located in the <TeamCity Data Directory>/config directory. These UUID must never be edited manually. When a new entity is created by placing a file to the Data Directory, it should have no uuid attribute. TeamCity will generate the UUID automatically, and it will persist in the file.

Last modified: 28 March 2022