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
, implementagentinitialized
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
Post a Comment