在路徑 Visual Studio Team Services 中找不到 curl (curl was not found in the path Visual Studio Team Services)


問題描述

在路徑 Visual Studio Team Services 中找不到 curl (curl was not found in the path Visual Studio Team Services)

我在 Visual Studio Team Services 中使用託管代理進行發布管理。我的發布定義中有一個 cURL 上傳文件 任務,該任務上周正在運行,過去幾週我已經成功部署了幾次。

今天我從相同的發布定義,我在 cURL Upload Files 任務中收到以下錯誤。

2016‑03‑31T08:56:43.4253012Z ##[debug]curl=null
2016‑03‑31T08:56:43.4263027Z ##[error]curl was not found in the path.
2016‑03‑31T08:56:43.4303022Z ##[debug]task result: Failed
2016‑03‑31T08:56:43.4313025Z Return code: 1

我檢查了託管代理上的系統功能,它列出了 curl C:\Program Files (x86)\Git\bin\curl.exe 作為其中之一。

有人知道為什麼突然開始失敗了嗎?


參考解法

方法 1:

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.

(by Richard McKennaTaylor Lafrinere)

參考文件

  1. curl was not found in the path Visual Studio Team Services (CC BY‑SA 2.5/3.0/4.0)

#curl #azure-devops #visual-studio #alm






相關問題

如何在所有 PayPal 交易中退還費用 (How to return fee in all PayPal transactions)

Cú pháp lệnh curl để đăng ký device_token trên Urban Airship là gì? (What is curl command syntax for device_token registration on Urban Airship?)

Nhận thời lượng video trên youtube từ URL với bash (Get youtube video duration from URL with bash)

đăng dữ liệu json với php curl cho đa phần / dữ liệu biểu mẫu để tải lên tệp nếu cakephp 2 (post json data with php curl for multipart/form-data for file upload vía cakephp 2)

ApacheMonitor 上的捲曲錯誤 (Curl error on ApacheMonitor)

從 ASP.net 使用 PHP 中的 POST 數據抓取數據 (Scraping data with POST data in PHP from ASP.net)

收聽推送消息? (Listen to a push message?)

在 PHP 中使用 cURL 的 RAW POST (RAW POST using cURL in PHP)

使用 php 和 curl 更新 mediawiki (using php and curl to update mediawiki)

在 Makefile 中鏈接 cURL (Linking cURL in Makefile)

將我的 .php 輸出發送到 curl 命令,該命令使用機器人在電報上向我發送消息 (Send my .php output to a curl command that messages me on telegram using a bot)

使用 Google My Business API 和 PHP 更新/修補本地帖子 (Updating/Patching a Local Post with Google My Business API and PHP)







留言討論