如何正确设置curl上传目标?

如何正确设置curl上传目标?,curl,azure-devops,azure-pipelines,Curl,Azure Devops,Azure Pipelines,本应设置上载路径,但DevOps会运行此命令及其输出。它在地址中添加了upload/44/。我如何避免这种情况 - task: cURLUploader@2 inputs: files: 'windows.zip' url: 'https://transfer.sh/cth-windows-$(Build.SourceVersion).zip' authtype: userAndPass 因为您没有指定远程路径他使用默认值-upload/$(Buil

本应设置上载路径,但DevOps会运行此命令及其输出。它在地址中添加了
upload/44/
。我如何避免这种情况

- task: cURLUploader@2
    inputs:
      files: 'windows.zip'
      url: 'https://transfer.sh/cth-windows-$(Build.SourceVersion).zip'
      authtype: userAndPass

因为您没有指定
远程路径
他使用默认值-
upload/$(Build.BuildId)
并将其附加到URL(我认为不应该使用默认值,可能是个bug)

因此,只需添加一个空值:

    [command]"C:\Program Files\Git\mingw64\bin\curl.exe" -T d:\a\1\s\windows.zip https://transfer.sh/cth-windows-c4f3511bf195972d0dbc52e4c35ef69f3acd55ed.zipupload/44/ --stderr -  
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0Not Found

  6   148  100    10    0     0     23      0 --:--:-- --:--:-- --:--:--    23Not Found

  6   148  100    10    0     0     23      0 --:--:-- --:--:-- --:--:--    23

##[warning]Not all files were uploaded; Uploaded: 0; Total: 1
remotePath: