我最近迁移了服务器并更新了TeamCity,以指向新的服务器/代理。代理是在新机器上设置的,代理在TeamCity中连接、授权和启用。在运行部署之后,我从构建日志中注意到,它跳过了“发布内部构件”步骤,并与所有步骤一起完成了“构建完成”。来自GitHub的所有包都已成功部署到Checkout,但不运行构建步骤。TeamCity没有发布内部构件(ArtifactsCachePublisher & WebPublisher)。
以下是运行失败的构建日志:
[17:53:31] Starting the build on the agent [new_server]
[17:53:32] Clearing temporary directory: C:\BuildAgent\temp\buildTmp
[17:58:37] Build finished下面是成功运行的构建日志:
[16:10:06] Starting the build on the agent [old_server]
[16:10:07] Clearing temporary directory: C:\BuildAgent\temp\buildTmp
[16:10:07] Publishing internal artifacts (4s)
[16:10:11] [Publishing internal artifacts] Publishing 1 file using
[ArtifactsCachePublisher]
[16:10:11] [Publishing internal artifacts] Publishing 1 file using
[WebPublisher]
[16:10:07] Using vcs information from agent file: deployment.xml
[16:10:07] Checkout directory: C:\BuildAgent\work\deployment
[----build steps start to run here----]发布于 2019-08-02 11:53:46
几周前,我成功地迁移/更新了我的TeamCity服务器。
在打包工件时,我遇到了一些问题。
我的构建步骤被中断,结果被取消,注释: build和agent意外地完成了,或者被杀死了。请查看代理日志以了解详细信息。
生成代理日志文件有以下内容
未能发布工件未能发布工件:由对等方重置连接:套接字写入错误,将再次尝试。未能对生成12执行远程命令发布,错误:由对等方重置jetbrains.buildServer.agent.ArtifactPublishingFailedException:连接:套接字写入错误
Build代理从服务器API向服务器发布工件,因此,通过对等方重置消息连接确实给了我一条线索,即人工文件大小可能超过TeamCity服务器设置。
查看我在“管理=>服务器管理=>全局设置”字段中找到的设置,最大构建工件文件大小: 300000000,下面以字节为单位,具有良好的描述性文本。允许使用KB、MB、GB或TB后缀,-1表示无限制。
https://stackoverflow.com/questions/57112619
复制相似问题