共用方式為


CargoAuthenticate@0 -) v0 工作的工作執行器驗證 (

用於安裝貨物箱之貨物用戶端的驗證工作。

注意

Azure Artifacts 中的貨物支援目前為預覽狀態。

Syntax

# Cargo authenticate (for task runners) v0
# Authentication task for the cargo client used for installing Cargo crates distribution.
- task: CargoAuthenticate@0
  inputs:
    configFile: # string. Required. config.toml file to authenticate. 
    #cargoServiceConnections: # string. Credentials for registries outside this organization/collection.

輸入

configFile - 要驗證的 config.toml 檔案
string. 必要。

config.toml 檔案的路徑,指定您想要使用的登錄。 選取檔案,而不是資料夾,例如 「/.cargo/config.toml」。


cargoServiceConnections - 此組織/集合外部登錄的認證
string.

要用於專案 config.toml 外部登錄的認證。 對於此組織/集合中的登錄,請勿指定此屬性;組建的認證會自動使用。

使用工作助理選取所需的服務連線。


工作控制選項

除了工作輸入之外,所有工作都有控制選項。 如需詳細資訊,請參閱 控制選項和一般工作屬性

輸出變數

無。

規格需求

需求 描述
管線類型 YAML、傳統組建、傳統版本
在 上執行 Agent、DeploymentGroup
要求
Capabilities 此工作不符合作業中後續工作的任何需求。
命令限制 任意
可設定變數 任意
代理程式版本 2.144.0 或更新版本
工作類別 套件