Teamcity

Teamcity 安装Ubuntu agent

By jere on 2017-03-08 0 Comments

Teamcity提供Agentpush 这种方式来安装teamcity agent, 但我的teamcity是通过nginx 来做的反向代理,通过Agent push的方式,一直得到安装失败的提示。

[22:05:11]: [120.24.82.254] WARNING: The TeamCity Agent installed as standalone application and will not start automatically on machine reboot.
[22:05:11]: [120.24.82.254] Cleaning temporary installation's resources...
[22:05:11]: [120.24.82.254] Removing './bootstrapper.sh'
[22:05:11]: [120.24.82.254] Removing '/root/BuildAgent'
[22:05:11]: [120.24.82.254] Successfully installed build agent on 'iZ948722qqcZ' to '/root/BuildAgent'
[22:05:12]: Remote agent installation failed: Command '[./bootstrapper.sh "http://teamcity.xxxxx.com" "/root/BuildAgent" "f56096e3fc39db281967d386af82e5ef"]' was executed with error message(s): stdin: is not a tty

还是github强大,找到了解决方案:
https://gist.github.com/firstdoit/5706202

当然,里面的一些变量需要修改,主要是需要把server url 改成相应的DNS 域名。

启动服务后,需要主动认证此Agent. 并且需要等待一会儿,因为这个Agent会更新一些组件。

打赏

Leave a comment

您的电子邮箱地址不会被公开。 必填项已用*标注