# Teamcity

## Uploading a build to [Updraft](https://getupdraft.com) with Teamcity

If you want to upload the app without including the updraft gradle plugin, you can do this by using the CURL link provided on Updraft. In order to set this up, first go to your project and open the desired application. On there, go to the Application Overview

On the Application Overview, click on **Copy CURL to Clipboard** in order to copy the executable command to upload the app.

The CURL will have a format like this:&#x20;

> curl -X PUT -F ‘app=@/PATH/TO/FILE’ [https://app.getupdraft.com/api/app\_upload/123456/23456/](https://medium.com/r/?url=https%3A%2F%2Fgetupdraft.com%2Fapi%2Fapp_upload%2F99c2f0f6b85d462daea5f8d9f062d346%2F65ae1e0f4b1f4b1898c9c956c4486289%2F)

After copying the CURL, head over to TeamCity.

**Create a new Build Step** which should be executed after building your app (when the .apk or .ipa file is ready).&#x20;

Select **Command Line** as the Runner type.

![Select Command Line as the Runner type](/files/-LcWd_GdJe-CqxHd9_Of)

After that, you can paste the CURL to the field **Custom script**.&#x20;

![Copy & paste Updraft CURL Link to the custom script](/files/-LcWdiHcg3fs0iZxLPUp)

**Note:** Be sure to replace the **-F app=@/PATH/TO/FILE** argument with a path to your own APK or IPA.

After setting up everything correctly in this build step, the app should be uploaded to Updraft appropriately.


---

# 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.getupdraft.com/integrations/teamcity-1.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.
