TeamCity build agent disconnected

前端 未结 7 1621
无人及你
无人及你 2021-02-03 19:16

I installed a build agent on Windows 7 and always have the agent show up as \"disconnected\". The log teamcity-agent.txt shows below information

 If this is the          


        
7条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-03 19:56

    Here is a very comprehensive blog on re-connecting disconnected agents

    http://michaelbarnesjr.wordpress.com/2012/10/18/teamcity-build-agent-disconnected/

    Here are the steps (copied from the above link)

    If an agent becomes disconnected for whatever reason, you can follow these steps to re-connect it:

    • ssh to the server that the disconnected agent is on.
    • go to the build agent’s bin directory (i.e. /opt/teamcity/buildagent/buildagent01/bin/)
    • su to the user that the agent runs as (i.e. appBuilder)
    • run agent.sh start

    That will start the agent, and after a few seconds or so, the next time you go to TeamCity, it will be connected.

    If Team City is running on a windows server, you can connect to that server, go to Services and restart the build agent that has become disconnected. Team City

提交回复
热议问题