Shell运行程序中的Curl上载文件
我试图通过curl从gitlab shell运行程序中上传一个文件 基本上我需要使用这个命令:Shell运行程序中的Curl上载文件,shell,curl,gitlab-ci,gitlab-ci-runner,Shell,Curl,Gitlab Ci,Gitlab Ci Runner,我试图通过curl从gitlab shell运行程序中上传一个文件 基本上我需要使用这个命令: curl --user <user:password> --insecure --upload-file <file> https://example.com curl——用户——不安全——上传文件https://example.com 显示以下错误: Invoke-WebRequest : A positional parameter cannot be found t
curl --user <user:password> --insecure --upload-file <file> https://example.com
curl——用户——不安全——上传文件https://example.com
显示以下错误:
Invoke-WebRequest : A positional parameter cannot be found that accepts argument "<user:password>"
调用WebRequest:找不到接受参数“”的位置参数
要在gitlab ci中运行此功能,我需要进行哪些调整
我已经尝试使用一个变量来表示地址和不同的引语变体
提前谢谢你 如“”中所述,您正在运行名为Invoke WebRequest
的CmdLet
,该CmdLet在Powershell中具有curl
别名。首先删除它:
Remove-item alias:curl
然后检查脚本是否调用了实际的curl
命令(或者您可能需要调用)
或者:将(别名为“curl
”)与.一起使用,如“您正在运行一个名为Invoke WebRequest
的CmdLet
,它在Powershell中有一个curl
别名。”
首先删除它:
Remove-item alias:curl
然后检查脚本是否调用了实际的curl
命令(或者您可能需要调用)
或:将(别名为“curl
”)与