CargoAuthenticate@0 - Cargo authenticate (for task runners) v0 任务

用于安装 Cargo crate 的 cargo 客户端的身份验证任务。

注释

Azure Artifacts 中的 Cargo 支持目前处于预览状态。

语法

# 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 中的外部注册表的凭证。 对于此组织/集合中的注册表,请勿指定此属性;系统会自动使用生成的凭证。

使用 任务助手 选择所需的服务连接。


任务控制选项

除任务输入之外,所有任务都具有控制选项。 有关详细信息,请参阅 “控制”选项和常见任务属性

输出变量

没有。

要求

要求 DESCRIPTION
管道类型 YAML,经典版本,经典版本
运行时间 代理,DeploymentGroup
要求 没有
功能 此任务不满足作业中后续任务的任何要求。
命令限制 任意
Settable 变量 任意
代理版本 2.144.0 或更高版本
任务类别 包装