Skip to content

Commit

Permalink
增加不同版本作业平台接口差异造成的插件输入差异提示与Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jsonwan committed Feb 25, 2021
1 parent c0203e5 commit 09dfb79
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ BK_APP_SECRET 略
ESB_HOST http://paas.service.consul:80
JOB_HOST http://job.bktencent.com:80
```
# 常见问题&解决方案
#### 1.权限问题
插件使用**流水线最后保存人**的身份去调用作业平台接口。
需要确保流水线最后保存人这个账号拥有作业平台的【快速分发文件】权限,且快速分发文件权限关联的实例包含插件中指定的所有主机、节点与动态分组(申请权限时建议关联实例资源选择对应业务下的任意资源以拥有将来新增资源的权限),若无权限可到蓝鲸权限中心进行申请。

#### 2.填写动态分组ID执行报错的问题
需要注意的是:由于不同版本作业平台的接口差异,若使用该插件对接蓝鲸6.x中的作业平台,需要在动态分组ID前加上"具体的业务ID:",对接5.x中的作业平台则不需要。
8 changes: 4 additions & 4 deletions task.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
"srcDynamicGroupIdListStr": {
"label": "源动态分组ID列表(Dynamic Group IDs)",
"default": "",
"placeholder": "请输入动态分组ID(从CMDB获取)列表\n如:brcfabc2si9h3j4v3qb1,多个ID之间用,;换行符中的任意一个进行分隔\n(Please input Dynamic Group IDs (Can be acquired from CMDB),ex: brcfabc2si9h3j4v3qb1, separated by one of[,;] or a line break when there are few IDs)",
"desc": "动态分组ID\n如:brcfabc2si9h3j4v3qb1\n多个ID之间用,;换行符中的任意一个进行分隔\n(Dynamic Group IDs, ex:brcfabc2si9h3j4v3qb1, separated by one of[,;] or a line break when there are few IDs)",
"placeholder": "请输入动态分组ID(从CMDB获取)列表\n如:brcfabc2si9h3j4v3qb1,多个ID之间用,;换行符中的任意一个进行分隔(注意:若对接蓝鲸6.x中的作业平台,请在动态分组ID前加上\"具体的业务ID:\",对接5.x中的作业平台则不需要)\n(Please input Dynamic Group IDs (Can be acquired from CMDB),ex: brcfabc2si9h3j4v3qb1, separated by one of[,;] or a line break when there are few IDs)(Important:please add \"[AppID]:\" before every Dynamic Group ID if you use this plugin to invoke Job in BlueKing6.0)",
"desc": "动态分组ID\n如:brcfabc2si9h3j4v3qb1\n多个ID之间用,;换行符中的任意一个进行分隔(注意:若对接蓝鲸6.x中的作业平台,请在动态分组ID前加上\"具体的业务ID:\",对接5.x中的作业平台则不需要)\n(Dynamic Group IDs, ex:brcfabc2si9h3j4v3qb1, separated by one of[,;] or a line break when there are few IDs)(Important:please add \"[AppID]:\" before every Dynamic Group ID if you use this plugin to invoke Job in BlueKing6.0)",
"type": "vuex-textarea",
"rely": {
"operation": "AND",
Expand Down Expand Up @@ -159,8 +159,8 @@
"targetDynamicGroupIdListStr": {
"label": "目标动态分组ID列表(Dynamic Group IDs)",
"default": "",
"placeholder": "请输入动态分组ID(从CMDB获取)列表\n如:brcfabc2si9h3j4v3qb1,多个ID之间用,;换行符中的任意一个进行分隔\n(Please input Dynamic Group IDs (Can be acquired from CMDB),ex: brcfabc2si9h3j4v3qb1, separated by one of[,;] or a line break when there are few IDs)",
"desc": "动态分组ID\n如:brcfabc2si9h3j4v3qb1\n多个ID之间用,;换行符中的任意一个进行分隔\n(Dynamic Group IDs, ex:brcfabc2si9h3j4v3qb1, separated by one of[,;] or a line break when there are few IDs)",
"placeholder": "请输入动态分组ID(从CMDB获取)列表\n如:brcfabc2si9h3j4v3qb1,多个ID之间用,;换行符中的任意一个进行分隔(注意:若对接蓝鲸6.x中的作业平台,请在动态分组ID前加上\"具体的业务ID:\",对接5.x中的作业平台则不需要)\n(Please input Dynamic Group IDs (Can be acquired from CMDB),ex: brcfabc2si9h3j4v3qb1, separated by one of[,;] or a line break when there are few IDs)(Important:please add \"[AppID]:\" before every Dynamic Group ID if you use this plugin to invoke Job in BlueKing6.0)",
"desc": "动态分组ID\n如:brcfabc2si9h3j4v3qb1\n多个ID之间用,;换行符中的任意一个进行分隔(注意:若对接蓝鲸6.x中的作业平台,请在动态分组ID前加上\"具体的业务ID:\",对接5.x中的作业平台则不需要)\n(Dynamic Group IDs, ex:brcfabc2si9h3j4v3qb1, separated by one of[,;] or a line break when there are few IDs)(Important:please add \"[AppID]:\" before every Dynamic Group ID if you use this plugin to invoke Job in BlueKing6.0)",
"type": "vuex-textarea",
"required": false,
"disabled": false,
Expand Down

0 comments on commit 09dfb79

Please sign in to comment.