dependencies - TeamCity : project parameters inheritance issue? -


i have teamcity 8.0.3 project multiple configs inside have common parameter (defined project parameter) : targetserverip. 1 of these configs "1 click deployment" starts others configs using snapshots dependencies. i've set parameter "prompt" ip asked on each run of configs,

problem : individually works fine, on each config run ip asked , applied config. when execute "1 clic deployment" asks ip not transmit other dependants configs (the value stays <empty>).

my question : how can set parameter applyed others configs when prompted ?

ps : i've tried set env. parameter not helps.

ps2 : using templates not seems solution me.

there 2 problems. 1 can with, one trying solve myself solved myself.

your problem how setup chain. 1 click deployment "depends" on others.

it cannot pass parameters other builds.
can use parameters dependent builds dep.dependent_build_configuration.paramter_name.

the fix

there 2 things have do.

  1. setup artifact dependencies
  2. setup triggers

build a

- parameters

globalparameter

  • display: normal
  • type: text
  • allowed value: not empty

build b

- parameters

localparameter

  • display: hidden
  • type: text
  • value %dep.build_a_globalparemeter%

- snapshot dependency

  • depends on: "build a"

- triggers

  • triggertype: finish build trigger
  • build configuration: build a

how works

the artifact dependency makes variables available via %dep.build_a.globalparameter% syntax. finish build trigger causes build a trigger build b. have access parameters because saved previous build.


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

c++ - Clear the memory after returning a vector in a function -

erlang - Saving a digraph to mnesia is hindered because of its side-effects -