首页 > 解决方案 > gitlab-ci 无法将 golang 构建的二进制文件上传到 nexus

问题描述

我正在尝试为 go 应用程序配置 .gitlab-ci.yml ,但是很难将生成的二进制文件上传到Nexus。我现在正在使用curl,但它失败了

curl: (22) The requested URL returned error: 400 Content type could not be determined

标签: gocontinuous-integrationgitlab-ci

解决方案


我发现出了什么问题。问题出在 NEXUS 方面。在 nexus 存储库的设置中,“允许重写”被取消勾选并再次勾选,所以它起作用了。


推荐阅读