使用artifactory插件从Jenkins部署gradle脚本

时间:2022-09-13 21:51:08

I'm trying to deploy a build from jenkins using the artifactory invocation of gradle plugin and get a an HTTP error 302, going through the log looks like there's a checksum problem that cannot be skipped:

我正在尝试使用gradle插件的工件调用从jenkins部署构建并获取HTTP错误302,通过日志看起来有一个无法跳过的校验和问题:

13:35:41.463 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask] Failed checksum deploy of checksum '8d80bb7f1bf2f0457baa3ad7379348c5ecbf2535' with statusCode: 302 13:35:41.466 [DEBUG] [org.apache.http.impl.conn.SingleClientConnManager] Get connection for route HttpRoute[{}->http://artifactory.edegem.eu.thmulti.com] .... 13:35:41.470 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnectionOperator] Connecting 13:35:41.503 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Receiving response: HTTP/1.1 302 Found

13:35:41.463 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask]校验和'8d80bb7f1bf2f0457baa3ad7379348c5ecbf2535'与statusCode的校验和失败:302 13:35:41.466 [DEBUG] [org.apache.http。 impl.conn.SingleClientConnManager]获取路由的连接HttpRoute [{} - > http://artifactory.edegem.eu.thmulti.com] .... 13:35:41.470 [DEBUG] [org.apache.http.impl .conn.DefaultClientConnectionOperator]连接13:35:41.503 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection]接收响应:HTTP / 1.1 302找到

Any clue?

任何线索?

Thanks a lot.

非常感谢。

1 个解决方案

#1


2  

302 is a status code for redirects, which means that your Artifactory is not located at 'http://artifactory.edegem.eu.thmulti.com' but in some other location. Browser follows the redirect to the new place (that's the reason you can browse Artifactory under this URL), but Artifactory networking is not. Please verify the 'real' location of Artifactory and point your Jenkins plugin to it.

302是重定向的状态代码,这意味着您的Artifactory不位于'http://artifactory.edegem.eu.thmulti.com',而是位于其他位置。浏览器遵循重定向到新位置(这是您可以在此URL下浏览Artifactory的原因),但Artifactory网络不是。请验证Artifactory的“真实”位置并将Jenkins插件指向它。

#1


2  

302 is a status code for redirects, which means that your Artifactory is not located at 'http://artifactory.edegem.eu.thmulti.com' but in some other location. Browser follows the redirect to the new place (that's the reason you can browse Artifactory under this URL), but Artifactory networking is not. Please verify the 'real' location of Artifactory and point your Jenkins plugin to it.

302是重定向的状态代码,这意味着您的Artifactory不位于'http://artifactory.edegem.eu.thmulti.com',而是位于其他位置。浏览器遵循重定向到新位置(这是您可以在此URL下浏览Artifactory的原因),但Artifactory网络不是。请验证Artifactory的“真实”位置并将Jenkins插件指向它。