diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..73f69e0958611ac6e00bde95641f6699030ad235 --- /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 0000000000000000000000000000000000000000..6560a98983ec708cf9d8b5c5c3776d7bd39c475b --- /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 0000000000000000000000000000000000000000..17ffaa06afc81760ef5270f6cae104a64882958f --- /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 0000000000000000000000000000000000000000..ffb9bebbd62db64ddaad9dcb475b79be53c5b2c1 --- /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 0000000000000000000000000000000000000000..d6ebd4805981b8400db3e3291c74a743fef9a824 --- /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 0000000000000000000000000000000000000000..35eb1ddfbbc029bcab630581847471d7f238ec53 --- /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 0000000000000000000000000000000000000000..4610cb4d278550066c5ed063ed3a70e9673db52b --- /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 0000000000000000000000000000000000000000..67b8d8e34d45aec27a2090f25e4bc84069782668 --- /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 0000000000000000000000000000000000000000..476a331bf6ae3617facac01e1bf195d356bae062 --- /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"