TaskInstance interface
对任务的引用。
- Extends
属性
always |
|
condition | |
continue |
|
display |
|
enabled | |
environment | |
instance |
|
ref |
|
retry |
|
timeout |
继承属性
build |
任务定义的生成配置。 对应于 task.json 文件的版本值。 <br />Example: CmdLineV2 { “_buildConfigMapping”: { “Default”: “2.232.2”, “Node20_229_7”: “2.232.3” } } |
id | 任务定义的 ID。 对应于 task.json 文件的 ID 值。 <br />Example: CmdLineV2 { “id”: “D9BAFED4-0B18-4F58-968D-86655B4D2CE9” } |
inputs | 特定于任务定义的输入的字典。 对应于 task.json 文件的输入值。 |
name | 任务定义的名称。 对应于task.json文件的名称值。 <br />Example: CmdLineV2 { “name”: “CmdLine” } |
version | 任务定义的版本。 对应于 task.json 文件的版本值。 <br />Example: CmdLineV2 { “version”: { “Major”: 2, “Minor”: 212, “Patch”: 0 } } |
属性详细信息
alwaysRun
alwaysRun: boolean
属性值
boolean
condition
condition: string
属性值
string
continueOnError
continueOnError: boolean
属性值
boolean
displayName
displayName: string
属性值
string
enabled
enabled: boolean
属性值
boolean
environment
environment: {[key: string]: string}
属性值
{[key: string]: string}
instanceId
instanceId: string
属性值
string
refName
refName: string
属性值
string
retryCountOnTaskFailure
retryCountOnTaskFailure: number
属性值
number
timeoutInMinutes
timeoutInMinutes: number
属性值
number
继承属性详细信息
buildConfig
任务定义的生成配置。 对应于 task.json 文件的版本值。 <br />Example: CmdLineV2 { “_buildConfigMapping”: { “Default”: “2.232.2”, “Node20_229_7”: “2.232.3” } }
buildConfig: string
属性值
string
id
任务定义的 ID。 对应于 task.json 文件的 ID 值。 <br />Example: CmdLineV2 { “id”: “D9BAFED4-0B18-4F58-968D-86655B4D2CE9” }
id: string
属性值
string
inputs
特定于任务定义的输入的字典。 对应于 task.json 文件的输入值。
inputs: {[key: string]: string}
属性值
{[key: string]: string}
name
任务定义的名称。 对应于task.json文件的名称值。 <br />Example: CmdLineV2 { “name”: “CmdLine” }
name: string
属性值
string
version
任务定义的版本。 对应于 task.json 文件的版本值。 <br />Example: CmdLineV2 { “version”: { “Major”: 2, “Minor”: 212, “Patch”: 0 } }
version: string
属性值
string
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈