jenkins 上传文件到 artifactory 失败,我收到 413 错误

jenkins upload file to artifactory failed, I got 413 error

错误日志:

For pattern: EMB5216_DO/DEVELOPER/SCTF/OUT/* 23 artifacts were found. 
17:32:52 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_usdpaa_eth.so 
17:32:52 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/framework.so 
17:32:52 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/changefiles/HLPR_MP_changefiles.txt 
17:32:53 Deploying artifact:http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_om.so 
17:32:53 Deploying artifact: http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_dd_major.so 

Response received: <html> <head><title>413 Request Entity Too Large</title></head> 17:32:53 <body bgcolor="white"> <center><h1>413 Request Entity Too Large</h1></center> <hr><center>nginx/1.11.8</center> </body> </html> 

17:32:53 Failed while reading the response from: PUT http://192.168.5.2:9081/artifactory/LTEV5/SCTF/232/sctf_dd_major.so;vcs.revision=3f031a59068b91dfcc6647d44584f07a0c734f93;build.timestamp=1501665987574;build.name=LTEV5_SCTF;build.number=232 HTTP/1.1 
17:32:53 ERROR: remote file operation failed: /opt/workspace/LTEV5_SCTF at hudson.remoting.Channel@18021228:Channel to /192.168.5.101: java.io.IOException: Failed to deploy file. Status code: 413

ci系统中没有nginx服务器,无法修改nginx.conf解决此问题

詹金斯 version:2.46.2
Artifactory 插件 version:2.12.2
artifactory-oss version:4.14

非常感谢

你能看看你最大的神器有多大吗?

您的 nginx 应用程序服务器不接受超过特定文件大小的文件。

看看你的 nginx 配置。本文可能对您有所帮助:https://www.cyberciti.biz/faq/linux-unix-bsd-nginx-413-request-entity-too-large/.

client_max_body_size 在将图像推送到人工制品时,Jenkins 中的 413 异常并不总是问题。

当 运行 带有 Tomcat 的 Artifactory 时,请检查 启用配额控制 选项,如果它被选中并且存储配额超过了定义的存储限制在这种情况下,您可能会得到 413 作为状态代码。