From ac9d94c97826ed18e289d62092445d297c49e85c Mon Sep 17 00:00:00 2001 From: "kingapex@javashop.cn" Date: Fri, 19 Mar 2021 16:14:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=92=E4=BB=B6=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/.gitignore | 8 +++++ .idea/inspectionProfiles/Project_Default.xml | 36 +++++++++++++++++++ .idea/misc.xml | 6 ++++ .idea/modules.xml | 8 +++++ .idea/pangu-plugin.iml | 9 +++++ .idea/vcs.xml | 6 ++++ checker/newchecker/newchecker.yml | 37 +++++++++++++++++++ executor/test2/test.sh | 1 + executor/test2/test.yml | 38 ++++++++++++++++++++ 9 files changed, 149 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/inspectionProfiles/Project_Default.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/modules.xml create mode 100644 .idea/pangu-plugin.iml create mode 100644 .idea/vcs.xml create mode 100644 checker/newchecker/newchecker.yml create mode 100644 executor/test2/test.sh create mode 100644 executor/test2/test.yml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..73f69e0 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml +# Editor-based HTTP Client requests +/httpRequests/ diff --git a/.idea/inspectionProfiles/Project_Default.xml b/.idea/inspectionProfiles/Project_Default.xml new file mode 100644 index 0000000..6560a98 --- /dev/null +++ b/.idea/inspectionProfiles/Project_Default.xml @@ -0,0 +1,36 @@ + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 0000000..17ffaa0 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..ffb9beb --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/pangu-plugin.iml b/.idea/pangu-plugin.iml new file mode 100644 index 0000000..d6ebd48 --- /dev/null +++ b/.idea/pangu-plugin.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/checker/newchecker/newchecker.yml b/checker/newchecker/newchecker.yml new file mode 100644 index 0000000..4610cb4 --- /dev/null +++ b/checker/newchecker/newchecker.yml @@ -0,0 +1,37 @@ +#插件版本 +version: 1.0 + +metadata: + #类型,必须 + #可选值: + #1.executor:执行器 + #2.checker:检查器 + #3.deployment:部署 + + kind: checker + + #定义插件名称,必须 + name: "install jdkaa11a1" + + #定义id,必须,不能有空格 + id: checkertest1 + + #定义插件描述,可以为空 + desc: checkertest1 + + #定义作者名字,必须 + author: wf + + #定义作者的链接,可以为空 + author_url: "https://www.javamall.com.cn" + +copy: + - source: /executor/jdk/install_jdk.sh + target: ${workspace}/install_jdk.sh + +command: + #定义命令的类型,目前支持ssh 命令,必须 + type : ssh + #执行的命令数组,必须 + exec : + - "sh ${workspace}/install_jdk.sh" diff --git a/executor/test2/test.sh b/executor/test2/test.sh new file mode 100644 index 0000000..67b8d8e --- /dev/null +++ b/executor/test2/test.sh @@ -0,0 +1 @@ +echo 'this is my plugin' diff --git a/executor/test2/test.yml b/executor/test2/test.yml new file mode 100644 index 0000000..476a331 --- /dev/null +++ b/executor/test2/test.yml @@ -0,0 +1,38 @@ +#插件版本 +version: 1.0 + +metadata: + #类型,必须 + #可选值: + #1.executor:执行器 + #2.checker:检查器 + #3.deployment:部署 + + kind: executor + + #定义插件名称,必须 + name: "wf3" + + #定义id,必须,不能有空格 + id: wf3 + + #定义插件描述,可以为空 + desc: wf3 + + #定义作者名字,必须 + author: javashop + + #定义作者的链接,可以为空 + author_url: "https://www.javamall.com.cn" + +copy: + - source: /executor/test2/test.sh + target: ${workspace}/test.sh + + +command: + #定义命令的类型,目前支持ssh 命令,必须 + type : ssh + #执行的命令数组,必须 + exec : + - "sh ${workspace}/test.sh" -- Gitee