[英]jenkins Nexus Artifact Uploader 400
在jenkins成功构建之后,我正在尝试将我的maven项目上传到nexus。 以下是我的两种配置:
这里的错误
Failed to deploy artifacts:
Could not transfer artifact de.xxx:NettyCore:pom:1.0-20170508.212447-1 from/to cloud-repo (http://xxx:xxx/nexus/content/repositories/cloud-repo):
Failed to transfer file: http://xxx:xxx/nexus/content/repositories/cloud-repo/de/xxx/NettyCore/1.0-SNAPSHOT/NettyCore-1.0-20170508.212447-1.pom.
Return code is: 400, ReasonPhrase:Bad Request.
ERROR: Uploading file pom.xml failed.
Finished: FAILURE
如“ 400 BAD请求HTTP错误代码含义? ”中所述,错误400表示请求格式错误。
在您的情况下,可能的原因是您要发送的GAV:版本是1.0-SNAPSHOT
...发送到发布回购:Nexus将拒绝该类型的版本。
“存储库策略”应该是“快照”才能接受1.0-SNAPSHOT
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.