# TeamCity Integration

## 1. **Generate** TeamCity **API Token**

1. Open TeamCity and click on the "User" button.

<figure><img src="https://3582076375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGIlBSTjQtZxUoFwUx4%2Fuploads%2FGEYJudvpdp6lqo4IorVr%2Fimage.png?alt=media&#x26;token=30284a2f-cbb4-4f7b-ae1d-3dbaf3f5061b" alt=""><figcaption></figcaption></figure>

&#x20; 2\. Click on the "Access Tokens"  button on the left.

<figure><img src="https://3582076375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGIlBSTjQtZxUoFwUx4%2Fuploads%2FKXeRfNiPmasCWNJT0scP%2Fimage.png?alt=media&#x26;token=3876f8e6-6613-40ad-84ba-8d6288951f0d" alt=""><figcaption></figcaption></figure>

&#x20; 3\. To create a new token, click on the "Create access token" button.

<figure><img src="https://3582076375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGIlBSTjQtZxUoFwUx4%2Fuploads%2FEOPjnN8bKtgsoravZNJS%2Fimage.png?alt=media&#x26;token=0c52a6d3-ff15-4a68-ae70-c7e745f29803" alt=""><figcaption></figcaption></figure>

&#x20; 4\. Give a name to your token and then store it securely.

## **2. Install TeamCity Addon on Oobeya**

1. &#x20;Log in to [Oobeya](https://oobeya.io/) with an *Administrator* account.
2. Navigate to **Integrations**, select the TeamCity addon, and click the **"Install"** button.&#x20;

<figure><img src="https://3582076375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGIlBSTjQtZxUoFwUx4%2Fuploads%2Fa4dOQ4eUVgq4OEm08Lzb%2FScreenshot%202024-12-17%20at%2011.48.19.png?alt=media&#x26;token=e778e7a5-dd85-47bb-9067-dfcdb6cf1235" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3582076375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGIlBSTjQtZxUoFwUx4%2Fuploads%2FY4rYqtMMYluQ1OGle8bi%2Fimage.png?alt=media&#x26;token=01049d22-4c53-4dab-966e-32b35cb00bd1" alt=""><figcaption></figcaption></figure>

## **3. Add A New Data Source**

1\. Navigate to **Data Sources**, and select **TeamCity** to add a new data source.&#x20;

<figure><img src="https://3582076375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGIlBSTjQtZxUoFwUx4%2Fuploads%2F04ectuIhXKeeVku4lmjh%2Fimage.png?alt=media&#x26;token=c10b1de9-88fd-4582-b830-cd42e2434bac" alt=""><figcaption></figcaption></figure>

2\. Click the **"New Data Source"** button and fill in the form by using the *API Token* which was created on **TeamCity** settings in the first step.&#x20;

<figure><img src="https://3582076375-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MGIlBSTjQtZxUoFwUx4%2Fuploads%2FIrUtUo1sipTTAbtT9KLG%2Fimage.png?alt=media&#x26;token=47bc714a-e309-4717-8b62-420a03a83d1e" alt=""><figcaption></figcaption></figure>

3\. Click the **"Test Connection"** button to verify the connection.

## **Ready to Connect** :rocket:&#x20;

Now Oobeya is connected with your own TeamCity server to monitor the health status of your pipelines and track key metrics such as *time-to-fix, average deployment duration*...


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.oobeya.io/integrations/all-integrations/scm-addons/teamcity-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
