go - gitlab-ci 无法将 golang 构建的二进制文件上传到 nexus
问题描述
我正在尝试为 go 应用程序配置 .gitlab-ci.yml ,但是很难将生成的二进制文件上传到Nexus。我现在正在使用curl,但它失败了
curl: (22) The requested URL returned error: 400 Content type could not be determined
解决方案
我发现出了什么问题。问题出在 NEXUS 方面。在 nexus 存储库的设置中,“允许重写”被取消勾选并再次勾选,所以它起作用了。
推荐阅读
- python - 将两个 series/df 的每个元素与 pandas 中的自定义函数进行比较,无需 for 循环
- oauth-2.0 - 测试开放银行业务的 OAuth2 OIDC 混合流
- javascript - 为什么在我的二维码生成过程中会留下未定义的模块?
- c# - url 参数传递电话号码,例如 +1234,如何检索它,例如 abc.com/save/xyz/+123
- output - 在没有固有输出文件的情况下运行 Sumo
- neovim - Vim-airline maxline 符号与 % 符号重叠
- delphi - MDI选项卡上的双击事件(Delphi)
- reactjs - 如何从子功能组件更新 React 中的父状态?
- dns - Gmail 显示旧域名所有者的照片和姓名
- ios - 如何压缩两个发布者但获取最新值而不是 zip 的默认最旧行为?