修改成workingDirectory
This commit is contained in:
parent
858624816b
commit
eb32a46e5b
@ -319,11 +319,37 @@ true, NOW(), 'system', NOW(), 'system', 1, false),
|
|||||||
"maximum": 3600,
|
"maximum": 3600,
|
||||||
"default": 300
|
"default": 300
|
||||||
},
|
},
|
||||||
"workingDir": {
|
"workingDirectory": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"title": "工作目录",
|
"title": "工作目录",
|
||||||
"description": "脚本执行的工作目录",
|
"description": "脚本执行的工作目录",
|
||||||
"default": "/tmp"
|
"default": "/tmp"
|
||||||
|
},
|
||||||
|
"retryTimes": {
|
||||||
|
"type": "number",
|
||||||
|
"title": "重试次数",
|
||||||
|
"minimum": 0,
|
||||||
|
"maximum": 10,
|
||||||
|
"default": 0
|
||||||
|
},
|
||||||
|
"retryInterval": {
|
||||||
|
"type": "number",
|
||||||
|
"title": "重试间隔(秒)",
|
||||||
|
"minimum": 1,
|
||||||
|
"maximum": 3600,
|
||||||
|
"default": 60
|
||||||
|
},
|
||||||
|
"environment": {
|
||||||
|
"type": "object",
|
||||||
|
"title": "环境变量",
|
||||||
|
"description": "脚本执行时的环境变量",
|
||||||
|
"additionalProperties": {"type": "string"}
|
||||||
|
},
|
||||||
|
"successExitCode": {
|
||||||
|
"type": "number",
|
||||||
|
"title": "成功退出码",
|
||||||
|
"description": "脚本执行成功的退出码",
|
||||||
|
"default": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -347,25 +373,11 @@ true, NOW(), 'system', NOW(), 'system', 1, false),
|
|||||||
"title": "执行器",
|
"title": "执行器",
|
||||||
"enum": ["SHELL"],
|
"enum": ["SHELL"],
|
||||||
"enumNames": ["Shell脚本执行器"]
|
"enumNames": ["Shell脚本执行器"]
|
||||||
},
|
|
||||||
"retryTimes": {
|
|
||||||
"type": "number",
|
|
||||||
"title": "重试次数",
|
|
||||||
"minimum": 0,
|
|
||||||
"maximum": 3,
|
|
||||||
"default": 0
|
|
||||||
},
|
|
||||||
"retryInterval": {
|
|
||||||
"type": "number",
|
|
||||||
"title": "重试间隔(秒)",
|
|
||||||
"minimum": 1,
|
|
||||||
"maximum": 300,
|
|
||||||
"default": 60
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": ["name", "executor"]
|
"required": ["name", "executor"]
|
||||||
}',
|
}',
|
||||||
'{"name": "Shell脚本", "executor": "SHELL", "retryTimes": 0, "retryInterval": 60}',
|
'{"name": "Shell脚本", "executor": "SHELL"}',
|
||||||
true, NOW(), 'system', NOW(), 'system', 1, false),
|
true, NOW(), 'system', NOW(), 'system', 1, false),
|
||||||
|
|
||||||
-- 网关节点类型
|
-- 网关节点类型
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user