使用工件插件从Jenkins部署gradle脚本 [英] Deploying a gradle script from Jenkins using the artifactory plugin

查看:286
本文介绍了使用工件插件从Jenkins部署gradle脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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:

13:35:41.463 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask]校验和'8d80bb7f1bf2f0457baa3ad7379348c5ecbf2535'的校验和部署失败,状态码: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已找到

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

有任何线索吗?

非常感谢.

推荐答案

302是重定向的状态代码,这意味着您的Artifactory不在' http://artifactory.edegem.eu.thmulti.com ",但在其他位置.浏览器将重定向到新位置(这是您可以在此URL下浏览Artifactory的原因),但Artifactory联网则不然.请验证Artifactory的真实"位置,然后将您的Jenkins插件指向该位置.

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.

这篇关于使用工件插件从Jenkins部署gradle脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆