This is an internal documentation. There is a good chance you’re looking for something else. See Disclaimer.

Continuous Delivery (CD)

Teamcity Project “Continuous Delivery NG”

The Continuous Delivery project is the entry point to CD.

../../_images/tc_main.png

Continuous delivery project on TC’s main page

Deliver (Simple)

Note

Use Deliver (Advanced) if you need to deploy …
  1. … a test system with a custom Git branch, tag or commit

  2. … you want to enable (default for prod) or disable (default for test) DB dumps

../../_images/tc_run_menu.png

Run menu

  1. Click on Run in the main page

  2. (optional) adjust the dump mode in the run menu

  3. Click Run Build in the run menu

Deliver (Advanced)

../../_images/tc_parameters_tab_with_ellipsis.png

Full Parameters menu as shown when opening via ellipsis (…)

../../_images/tc_run_changes_tab.png

Changes tab in Run menu

  1. Click on Run in the main page.

  2. (optional) Adjust the dump mode in the run menu.

  3. (optional) Select a particular Git tag or branch or deploy a particular Docker image.

  4. (optional) Select a particular commit in branch/tag using field “Includes changes”.

  5. Click Run Build in the run menu.

Dump Mode

../../_images/tc_dump_modes_dropdown.png

Dump Mode dropdown on Parameters tab in Run menu

do not dump database

Deploy without creating a dump first (default for test systems.)

dump database

Create a dump and only then deploy (default for production systems.)

Deploy a Specific Git Branch, Tag or Commit

../../_images/tc_changes_tab_dropdown.png

Build branch dropdown on Changes tab in Run menu

Build branch allows you to specify to deploy an arbitrary Git branch or tag.

Note

There might be a situation where you want to deploy a tag directly on production. In that case remove the CD parameter “DOCKER_PULL_URL”. See deploy a Specific Docker Image.