延伸所有 | 折疊所有
基於 manifest.json 檔案的遠端執行指令碼工作存檔必須符合以下要求:
清單檔案的 JSON 架構和陣列描述
JSON 架構
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Schema for execute scripts task",
"type": "object",
"properties": {
"version",
"type": "integer",
"enum": [1]
},
"actions": [
"type": "array",
"items": {
"type",
"type": "string",
"enum": ["execute"]
"path",
"args": {
"results": [
"code",
"minimum": -255,
"maximum": 255
"next"
"enum": ["break", "continue"]
}
"required": [
]
"default_next"
"actions"
清單檔案範例
"version": 1,
"
version
": 1,
actions
": [
"type": "execute",
type
": "execute",
"path": "scripts/run1.cmd",
path
": "scripts/run1.cmd",
"args": "testArg",
args
": "testArg",
results
"code": 0,
code
": 0,
"next": "continue"
next
": "continue"
],
"default_next": "break"
default_next
": "break"
"path": "scripts/run2.cmd",
": "scripts/run2.cmd",
"path": "scripts/run3.cmd",
": "scripts/run3.cmd",
manifest.json
<檔案 1>
<檔案 2>
<資料夾 1>/<檔案 3>
<資料夾 2>/<資料夾 3>/<檔案 4>
...
<檔案 X>
manifest.json 是工作的清單檔案。
<file1>, ...., <fileX> 是包含要執行的指令碼的檔案集。
<file1>, ...., <fileX>