From 546e08006996daa632074b0bfed6c1a631d9b08f Mon Sep 17 00:00:00 2001 From: jsonwan <1334793794@qq.com> Date: Thu, 25 Feb 2021 18:21:31 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=B8=8D=E5=90=8C=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E4=BD=9C=E4=B8=9A=E5=B9=B3=E5=8F=B0=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E5=B7=AE=E5=BC=82=E9=80=A0=E6=88=90=E7=9A=84=E6=8F=92=E4=BB=B6?= =?UTF-8?q?=E8=BE=93=E5=85=A5=E5=B7=AE=E5=BC=82=E6=8F=90=E7=A4=BA=E4=B8=8E?= =?UTF-8?q?Readme?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 7 +++++++ task.json | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94d802c..7fde27a 100644 --- a/README.md +++ b/README.md @@ -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中的作业平台则不需要。 diff --git a/task.json b/task.json index 58b1830..2d5af21 100644 --- a/task.json +++ b/task.json @@ -101,8 +101,8 @@ "dynamicGroupIdList": { "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,