我正在尝试上传我的maven项目到连接后,成功地构建了jenkins。以下是我的两种配置:
尼克斯

还有jenkins的配置:

在这里,错误
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发布于 2017-05-08 21:40:45
正如"400 BAD request HTTP error code meaning?“中所提到的,错误400意味着请求格式错误。
在你的例子中,一个可能的原因是你想发送的GAV :版本是1.0-SNAPSHOT.发送到发布回购:这种版本将被Nexus拒绝。
为了接受1.0-SNAPSHOT,“存储库策略”应该是“快照”。
https://stackoverflow.com/questions/43857607
复制相似问题