我使用curlPowerShell中的命令通过Jenkins作业在bit-bucket pull请求页面中发布评论.我使用下面的PowerShell命令来执行curl命令,但是我收到了下面提到的错误.有人可以帮我解决这个问题吗?
$CurlArgument="-u xxx@gmail.com:yyyy -X POST https://xxx.bitbucket.org/1.0/repositories/abcd/efg/pull-requests/2229/comments --data content=success"
$CURLEXE='C:\Program Files\Git\mingw64\bin\curl.exe'
& $CURLEXE $CurlArgument
Run Code Online (Sandbox Code Playgroud)
错误详情:
curl.exe : curl: no URL specified!
At line:3 char:1
+ & $CURLEXE $CurlArgument
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (curl: no URL specified!:String) [], RemoteException
+ FullyQualifiedErrorId : NativeCommandError
curl: try 'curl --help' or 'curl --manual' for more information