curl was not found in the path Visual Studio Team Services

一世执手 提交于 2019-12-01 20:12:51

First, sorry about this. I'm with the product team and we’ve confirmed this is a regression on our side. cURL is still on the box but it is no longer in the path. We’re working on getting this fixed on our end but it’ll likely take a day or two. In the meantime, we’d recommend doing the following:

  1. Before your curl task, create a new powershell task
  2. Change the type of the task to be an “Inline Script”
  3. Change the Inline Script input to be the following:

echo "##vso[task.setvariable variable=PATH;]$env:PATH;C:\Program Files\Git\usr\bin"

  1. Save and queue a new build.

UPDATE: We've fixed this issue now. The workaround should be no longer necessary.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!