continuous integration - How do I Setup an Agent Requirement in TeamCity that detects if an Application is installed? -


i have build environment multiple agents.
set agent requirement in build detects if software installed. in cases can in env.path particular string. software doesn't modify path.

i realize after install software edit buildagent.properties file set particular property, i'd more automatic.

the specific instance have build uses msdeploy deploy websites, won't work if msdeploy isn't installed. how can specify in build need agent has msdeploy installed?

you can build simple agent plugin. here few suggestions:

  • extend agentlifecycleadapter , implement agentinitialized method
  • implement logic of detection necessary application (for example based on file existence) inside agentinitialized method
  • use agent.getconfiguration().addconfigurationparameter() report agent parameter server

if detection logic can implemented through file detection, can use filewatcher monitor specific files , report parameters based on them without restart of agent


Comments

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -