Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p><strong>Update: This answer is only relevant to TeamCity v8 or older</strong></p> <p>I have tried this myself but sadly I suspect it's not currently possible.</p> <p>The <a href="http://confluence.jetbrains.com/display/TCD7/Build+Dependencies+Setup#BuildDependenciesSetup-Reusingbuilds" rel="nofollow">Build Dependencies Setup</a> documentation supports this:</p> <blockquote> <p>When build A depends on build B, you can pass properties from build B to build A, i.e. properties can be passed <strong>only in the direction of build chain flow and not vice versa</strong>.</p> </blockquote> <p>The (generally sensible) reason I think its like this is because of the following:</p> <ul> <li>The dependent build configuration could be a dependency of more than one other build configuration.</li> </ul> <p>Think about it: If two parents want to pass their (differing) parameters to the dependent build, what do they get for the "last successful build"? Theoretically TeamCity could check if the properties for the last build match what was needed (rebuilding otherwise). But even then you would end up with an ugly build history of builds for all different environments. This really doesn't fit with the concept of build configurations.</p> <p>The best way to reuse the build configurations is to template them, and then create multiple projects setting properties at the project-level so they are available to all the contained build configurations.</p> <p>Ultimately the best advice may be to reconsider if you really need to use two build configurations for your project at all. Best-practice is to minimize the number of build configurations and build steps - put as much build logic into your own scripts as possible.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload