TeamCity Build Chain configuration

vkr

I have a TeamCity project which includes 4 configurations and the build chain needs to look something like this:

Build Chain set up

Build which can be triggered manually and executes .bat scripts that compiles a bunch of artifacts for the Deploy and TEST to pick up.

Deploy and TEST – Region 1 has an artifact dependency on the Build config.

Deploy and TEST – Region 2 has an artifact dependency on the Build config.

Since I wanted both Region1 and Region2 to run in parallel as soon as Build is successful, I added a Snapshot dependency to Deploy and TEST – Region 1 and Deploy and TEST – Region 2 on Build config

Now I need to configure the Test Status config just to report the failure/success of the previous config (Deploy and TEST configs).

How can this be achieved? Also, do I need to tweak my set up anywhere for the use case I am trying to achieve?

Alina Mishina

The setup looks correct. To get the build chain status in Test Status configuration, you need to add snapshot dependencies on Deploy and TEST – Region 1 and Deploy and TEST – Region 2 configurations. If any build from the chain fails, Test Status build will also fail with status: "Snapshot dependencies failed:​ .​.​.​ < build configurations names >"

If you add these snapshot dependencies and run Test Status via UI, the whole build chain will be added to the queue. Also you can configure one VCS trigger in Test Status build configuration with option "Trigger on changes in snapshot dependencies". With this options enabled, the whole build chain will be triggered even if changes are detected in dependencies, not in the resulting build.

This article can be helpful.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Teamcity build chain templating

From Dev

Build configuration history in teamcity

From Dev

How to archive a build configuration in Teamcity?

From Dev

How to revert changes to a build configuration in TeamCity

From Dev

Nuget - Pack and Publish in the same build configuration in TeamCity

From Dev

Can I configure TeamCity to NOT start build chain before it is completed?

From Dev

Import/Export TeamCity build configuration from one server to another

From Dev

Adding a Trigger to a build configuration in TeamCity using the REST API

From Dev

TeamCity 9.1.5: Build configuration's schedule trigger is flaky (works sometimes)

From Dev

Import/Export TeamCity build configuration from one server to another

From Dev

TeamCity 9.1.5: Build configuration's schedule trigger is flaky (works sometimes)

From Dev

How to build a project in teamcity after multiple other builds have finished and not trigger the dependency chain?

From Dev

What is the proper way of using /p per build step in a TeamCity build configuration?

From Dev

Teamcity - Incompatible Agent configuration

From Dev

TeamCity not recognizing configuration parameters

From Dev

TeamCity not recognizing configuration parameters

From Dev

Teamcity triggering a build on a merge

From Dev

String Interpolation will not build on TeamCity

From Dev

Teamcity Stop Build with success

From Dev

Rename a TeamCity Build Agent

From Dev

Teamcity Stop Build with success

From Dev

Teamcity build is not running

From Dev

TeamCity: search over configuration parameters

From Dev

Teamcity insists on publishing with the "debug" configuration

From Dev

Select Git branch for TeamCity Build

From Dev

Teamcity build with multiple vcs roots

From Dev

TeamCity buildlog for a single build step

From Dev

Accessing TeamCity artifacts in Build Step

From Dev

Build and test with TeamCity and Fakes Framework

Related Related

  1. 1

    Teamcity build chain templating

  2. 2

    Build configuration history in teamcity

  3. 3

    How to archive a build configuration in Teamcity?

  4. 4

    How to revert changes to a build configuration in TeamCity

  5. 5

    Nuget - Pack and Publish in the same build configuration in TeamCity

  6. 6

    Can I configure TeamCity to NOT start build chain before it is completed?

  7. 7

    Import/Export TeamCity build configuration from one server to another

  8. 8

    Adding a Trigger to a build configuration in TeamCity using the REST API

  9. 9

    TeamCity 9.1.5: Build configuration's schedule trigger is flaky (works sometimes)

  10. 10

    Import/Export TeamCity build configuration from one server to another

  11. 11

    TeamCity 9.1.5: Build configuration's schedule trigger is flaky (works sometimes)

  12. 12

    How to build a project in teamcity after multiple other builds have finished and not trigger the dependency chain?

  13. 13

    What is the proper way of using /p per build step in a TeamCity build configuration?

  14. 14

    Teamcity - Incompatible Agent configuration

  15. 15

    TeamCity not recognizing configuration parameters

  16. 16

    TeamCity not recognizing configuration parameters

  17. 17

    Teamcity triggering a build on a merge

  18. 18

    String Interpolation will not build on TeamCity

  19. 19

    Teamcity Stop Build with success

  20. 20

    Rename a TeamCity Build Agent

  21. 21

    Teamcity Stop Build with success

  22. 22

    Teamcity build is not running

  23. 23

    TeamCity: search over configuration parameters

  24. 24

    Teamcity insists on publishing with the "debug" configuration

  25. 25

    Select Git branch for TeamCity Build

  26. 26

    Teamcity build with multiple vcs roots

  27. 27

    TeamCity buildlog for a single build step

  28. 28

    Accessing TeamCity artifacts in Build Step

  29. 29

    Build and test with TeamCity and Fakes Framework

HotTag

Archive