diff --git a/support-files/sql/2006_ci_store-update_v1.5_mysql.sql b/support-files/sql/2006_ci_store-update_v1.5_mysql.sql deleted file mode 100644 index f567130cc5e..00000000000 --- a/support-files/sql/2006_ci_store-update_v1.5_mysql.sql +++ /dev/null @@ -1,25 +0,0 @@ -USE devops_ci_store; -SET NAMES utf8mb4; - -DROP PROCEDURE IF EXISTS ci_store_schema_update; - -DELIMITER - -CREATE PROCEDURE ci_store_schema_update() -BEGIN - - DECLARE db VARCHAR(100); - SET AUTOCOMMIT = 0; - SELECT DATABASE() INTO db; - - IF EXISTS(SELECT 1 - FROM `T_ATOM` - WHERE `ATOM_CODE` = 'codeGitlabWebHookTrigger') THEN - UPDATE `T_ATOM` SET `PROPS`='{"repositoryType":{"rule":{},"type":"enum","component":"enum-input","required":true,"label":"代码库","list":[{"value":"ID","label":"按代码库选择"},{"value":"NAME","label":"按代码库别名输入"}],"default":"ID","desc":""},"repositoryHashId":{"rule":{},"type":"text","label":"代码库","hasAddItem":true,"required":true,"component":"request-selector","searchable":true,"placeholder":"请选择代码库名称","default":"","url":"/repository/api/user/repositories/{projectId}/hasPermissionList?permission=USE&repositoryType=CODE_GITLAB&page=1&pageSize=100","paramId":"repositoryHashId","paramName":"aliasName","tools":{"edit":true,"del":false}},"repositoryName":{"rule":{},"type":"text","component":"vuex-input","required":true,"hidden":true,"label":"","placeholder":"请输入代码库别名","default":""},"branchName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"分支名称","placeholder":"默认为所有分支","default":""},"excludeBranchName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"排除以下目标分支","placeholder":"多个分支间以英文逗号分隔","default":"","rely":{"operation":"NOT","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"includeSourceBranchName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"监听以下源分支","placeholder":"多个路径间以英文逗号分隔","default":"","rely":{"operation":"OR","expression":[{"key":"eventType","value":"MERGE_REQUEST"},{"key":"eventType","value":"MERGE_REQUEST_ACCEPT"}]}},"excludeSourceBranchName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"排除以下源分支","placeholder":"多个路径间以英文逗号分隔","default":"","rely":{"operation":"OR","expression":[{"key":"eventType","value":"MERGE_REQUEST"},{"key":"eventType","value":"MERGE_REQUEST_ACCEPT"}]}},"tagName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"监听以下tag","placeholder":"默认为所有tag,多个tag间以英文逗号分隔","default":"","rely":{"operation":"AND","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"excludeTagName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"排除以下tag","placeholder":"多个tag间以英文逗号分隔","default":"","rely":{"operation":"AND","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"includePaths":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"监听以下路径","placeholder":"多个路径间以英文逗号分隔","default":"","rely":{"operation":"NOT","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"excludePaths":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"排除以下路径","placeholder":"多个路径间以英文逗号分隔","default":"","rely":{"operation":"NOT","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"excludeUsers":{"rule":{},"component":"staff-input","required":false,"multiSelect":true,"label":"排除以下人员","default":[],"rely":{"operation":"NOT","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"eventType":{"rule":{},"type":"text","required":false,"component":"enum-input","label":"事件类型","list":[{"label":"Commit Push Hook","value":"PUSH","tips":"有新的推送事件到项目时,会触发。 如果是tags推送,则不会触发。"},{"label":"Tag Push Hook","value":"TAG_PUSH","tips":"项目中新增或删除tags时会触发"},{"label":"Merge Request Hook","value":"MERGE_REQUEST","tips":"项目中新增Merge Request时会触发"},{"label":"Merge Request Accept Hook","value":"MERGE_REQUEST_ACCEPT","tips":"项目中Merge Request accept时会触发"}],"default":"PUSH"}}' where `ATOM_CODE`='codeGitlabWebHookTrigger'; - END IF; - - COMMIT; -END -DELIMITER ; -COMMIT; -CALL ci_store_schema_update(); diff --git a/support-files/sql/5001_ci_store-init_dml_mysql.sql b/support-files/sql/5001_ci_store-init_dml_mysql.sql index 7d2b0d435c3..9ff28453815 100755 --- a/support-files/sql/5001_ci_store-init_dml_mysql.sql +++ b/support-files/sql/5001_ci_store-init_dml_mysql.sql @@ -17,7 +17,7 @@ REPLACE INTO `T_ATOM` (`ID`, `NAME`, `ATOM_CODE`, `CLASS_TYPE`, `SERVICE_SCOPE`, ('59954d74ccbc4f4b9d3fc11901074b75', 'Checkout SVN', 'CODE_SVN', 'CODE_SVN', '[ \"pipeline\" ]', 'AGENT', '[ \"LINUX\", \"MACOS\", \"WINDOWS\" ]', 'babff353027b4763a7fd127f61ae80e7', '', 0, 7, NULL, '', '', 1, '1.0.0', '/ms/artifactory/api/user/artifactories/file/download?filePath=%2Ffile%2Fpng%2FCODE_SVN.png', NULL, b'1', b'1', b'1', NULL, NULL, b'1', '1.0', '{\"svnVersion\":{\"rule\":{},\"type\":\"enum\",\"component\":\"enum-input\",\"required\":false,\"list\":[{\"label\":\"1.6\",\"value\":\"V_1_6\",\"disabled\":true},{\"label\":\"1.7\",\"value\":\"V_1_7\",\"disabled\":true},{\"label\":\"1.8/1.9/1.10\",\"value\":\"V_1_8\",\"disabled\":true}],\"label\":\"version\",\"default\":\"V_1_8\",\"desc\":\"Specific svn version\"},\"repositoryType\":{\"rule\":{},\"type\":\"enum\",\"component\":\"enum-input\",\"required\":true,\"label\":\"Repo\",\"list\":[{\"value\":\"ID\",\"label\":\"select\"},{\"value\":\"NAME\",\"label\":\"input\"}],\"default\":\"ID\",\"desc\":\"\"},\"repositoryHashId\":{\"rule\":{},\"label\":\"\",\"hasAddItem\":true,\"component\":\"request-selector\",\"searchable\":true,\"placeholder\":\"select repo\",\"required\":true,\"hidden\":true,\"default\":\"\",\"url\":\"/repository/api/user/repositories/{projectId}/hasPermissionList?permission=USE&repositoryType=CODE_SVN&page=1&pageSize=100\",\"paramId\":\"repositoryHashId\",\"paramName\":\"aliasName\",\"tools\":{\"edit\":true,\"del\":false}},\"repositoryName\":{\"rule\":{},\"type\":\"text\",\"component\":\"vuex-input\",\"required\":true,\"hidden\":true,\"label\":\"\",\"placeholder\":\"input repo\",\"default\":\"\"},\"svnPath\":{\"rule\":{},\"type\":\"text\",\"component\":\"vuex-input\",\"required\":false,\"label\":\"Relative path\",\"default\":\"\",\"placeholder\":\"Example: branchs/v1.0.0\"},\"path\":{\"rule\":{},\"type\":\"text\",\"component\":\"vuex-input\",\"required\":false,\"label\":\"local path\",\"default\":\"\",\"placeholder\":\"Local path, example: ./src/\",\"desc\":\"Local path, example: ./src/\"},\"strategy\":{\"rule\":{},\"type\":\"enum\",\"component\":\"enum-input\",\"required\":true,\"list\":[{\"value\":\"REVERT_UPDATE\",\"label\":\"Revert Update\"},{\"value\":\"FRESH_CHECKOUT\",\"label\":\"Fresh Checkout\"},{\"value\":\"INCREMENT_UPDATE\",\"label\":\"Increment Update\"}],\"label\":\"Policy\",\"default\":\"REVERT_UPDATE\",\"desc\":\"Revert Update: Increment, svn revert + update\n Fresh Checkout: Whole, delete local path then checkout\n Increment Update: Increment:svn update\"},\"svnDepth\":{\"rule\":{},\"type\":\"text\",\"component\":\"selector\",\"required\":true,\"list\":[{\"id\":\"empty\",\"name\":\"Empty(只包含目标文件或目录,不包含子目录)\"},{\"id\":\"files\",\"name\":\"Files(只包含目标文件和子文件)\"},{\"id\":\"immediates\",\"name\":\"Immediates(只包含目标文件及相邻的文件和目录)\"},{\"id\":\"infinity\",\"name\":\"Infinity(所有文件、目录及子目录)\"}],\"label\":\"仓库深度(Depth)\",\"searchable\":true,\"multiSelect\":false,\"default\":\"Infinity\"},\"enableSubmodule\":{\"rule\":{},\"type\":\"text\",\"required\":false,\"component\":\"atom-checkbox\",\"text\":\"启用外链\",\"default\":true,\"desc\":\"勾选则启用外链,不勾选则不启用\"},\"specifyRevision\":{\"rule\":{},\"type\":\"text\",\"required\":false,\"component\":\"atom-checkbox\",\"text\":\"指定版本号(勾选后将在启动构建时输入)\",\"default\":false,\"desc\":\"勾选后启动流水线时则需要需要选择代码库版本号,不勾选则拉取最新代码\"},\"revision\":{\"rule\":{},\"type\":\"text\",\"component\":\"vuex-input\",\"required\":false,\"hidden\":true,\"label\":\"\",\"default\":\"\",\"placeholder\":\"请填写指定版本号\"}}', '{}', 'system', 2, 'system', 'system', '2019-02-28 15:21:12', '2019-04-08 20:56:10', 0), ('ea1d4d582a3147fdb29a04168cc79a43', 'Upload Report', 'reportArchive', 'reportArchive', '[ \"pipeline\" ]', 'AGENT', '[ \"LINUX\", \"MACOS\", \"WINDOWS\" ]', '75c96e7aa24f481789300cd1737b1ae1', '', 0, 7, NULL, '可将构建机上的html报告归档至蓝盾,同时发送邮件出来', '可将构建机上的html报告归档至蓝盾,同时发送邮件出来', 1, '1.0.0', '/ms/artifactory/api/user/artifactories/file/download?filePath=%2Ffile%2Fpng%2FreportArchive.png', NULL, True, True, False, NULL, NULL, False, '1.0', '{\n \"fileDir\": {\n \"type\": \"text\",\n \"required\": true,\n \"component\": \"vuex-input\",\n \"label\": \"待展示的产出物报告路径(该路径下所有子文件均会被归档)\",\n \"placeholder\": \"./report/\",\n \"desc\": \"目前支持html文件的自动渲染\"\n },\n \"indexFile\": {\n \"type\": \"text\",\n \"required\": true,\n \"component\": \"vuex-input\",\n \"label\": \"入口文件\",\n \"placeholder\": \"index.html\"\n },\n \"reportName\": {\n \"type\": \"text\",\n \"required\": true,\n \"component\": \"vuex-input\",\n \"label\": \"标签别名\",\n \"placeholder\": \"请输入自定义报告名称\"\n },\n \"enableEmail\": {\n \"rule\": {},\n \"type\": \"boolean\",\n \"required\": false,\n \"text\": \"\",\n \"desc\": \"\",\n \"default\": true\n },\n \"emailReceivers\": {\n \"rule\": {},\n \"component\": \"user-input\",\n \"required\": true,\n \"label\": \"收件人\",\n \"placeholder\": \"\",\n \"default\": []\n },\n \"emailTitle\": {\n \"type\": \"text\",\n \"required\": true,\n \"component\": \"vuex-input\",\n \"label\": \"邮件主题\",\n \"placeholder\": \"请输入邮件主题\",\n \"default\": \"【${BK_CI_PIPELINE_NAME}】 #${BK_CI_BUILD_NUM} 自定义报告已归档\"\n }\n}', '{}', 'system', 90, 'system', 'system', '2019-03-04 18:09:40', '2019-04-19 15:05:17', 0), ('6dbd742f76854aedb2603430574d842b', 'SVN', 'codeSVNWebHookTrigger', 'codeSVNWebHookTrigger', '[ \"pipeline\" ]', 'AGENT', '[ \"LINUX\", \"MACOS\", \"WINDOWS\" ]', 'e1bea5430f574f9ea3e0312dc7de9efa', '', 0, 7, NULL, '监听到SVN代码库的相关事件时启动流水线', '监听到SVN代码库的相关事件时启动流水线', 0, '1.0.0', '/ms/artifactory/api/user/artifactories/file/download?filePath=%2Ffile%2Fpng%2FsvnTrigger.png', NULL, b'1', b'1', b'0', NULL, NULL, b'0', '1.0', '{\"repositoryType\":{\"rule\":{},\"type\":\"enum\",\"component\":\"enum-input\",\"required\":true,\"label\":\"代码库\",\"list\":[{\"value\":\"ID\",\"label\":\"按代码库选择\"},{\"value\":\"NAME\",\"label\":\"按代码库别名输入\"}],\"default\":\"ID\",\"desc\":\"\"},\"repositoryHashId\":{\"rule\":{},\"label\":\"\",\"hasAddItem\":true,\"component\":\"request-selector\",\"searchable\":true,\"placeholder\":\"请选择代码库名称\",\"required\":true,\"default\":\"\",\"url\":\"/repository/api/user/repositories/{projectId}/hasPermissionList?permission=USE&repositoryType=CODE_SVN&page=1&pageSize=1000\",\"paramId\":\"repositoryHashId\",\"paramName\":\"aliasName\",\"tools\":{\"edit\":true,\"del\":false}},\"repositoryName\":{\"rule\":{},\"type\":\"text\",\"component\":\"vuex-input\",\"required\":true,\"hidden\":true,\"label\":\"\",\"placeholder\":\"请输入代码库别名\",\"default\":\"\"},\"relativePath\":{\"rule\":{},\"type\":\"text\",\"required\":false,\"component\":\"vuex-input\",\"label\":\"代码库相对路径\",\"placeholder\":\"以代码库为根路径的相对路径,如branchs/v1.0.0, 多个路径以英文逗号分隔\",\"default\":\"\"},\"excludePaths\":{\"rule\":{},\"type\":\"text\",\"required\":false,\"component\":\"vuex-input\",\"label\":\"排除以下路径\",\"placeholder\":\"多个路径以英文逗号分隔\",\"default\":\"\"},\"includeUsers\":{\"rule\":{},\"type\":\"text\",\"required\":false,\"component\":\"user-input\",\"label\":\"包含以下人员\",\"placeholder\":\"多个人名以英文逗号分隔\",\"default\":\"\"},\"excludeUsers\":{\"rule\":{},\"type\":\"text\",\"required\":false,\"component\":\"user-input\",\"label\":\"排除以下人员\",\"placeholder\":\"多个路径以英文逗号分隔\",\"default\":\"\"}}', '{}', 'system', 6, 'system', 'system', '2019-03-04 18:09:39', '2020-05-21 11:17:42', 0), - ('6e715b411b7e4c35b5944a03b4f488a9', 'GitLab', 'codeGitlabWebHookTrigger', 'codeGitlabWebHookTrigger', '[ \"pipeline\" ]', 'AGENT', '[ \"LINUX\", \"MACOS\", \"WINDOWS\" ]', 'e1bea5430f574f9ea3e0312dc7de9efa', '', 0, 7, NULL, '监听到GitLab代码库的相关事件时启动流水线', '监听到GitLab代码库的相关事件时启动流水线', 0, '1.0.0', '/ms/artifactory/api/user/artifactories/file/download?filePath=%2Ffile%2Fpng%2FgitlabTrigger.png', NULL, b'1', b'1', b'0', NULL, NULL, b'0', '1.0', '{\"repositoryHashId\":{\"rule\":{},\"type\":\"text\",\"label\":\"代码库\",\"hasAddItem\":true,\"required\":true,\"component\":\"request-selector\",\"searchable\":true,\"placeholder\":\"请选择代码库名称\",\"default\":\"\",\"url\":\"/repository/api/user/repositories/{projectId}/hasPermissionList?permission=USE&repositoryType=CODE_GITLAB&page=1&pageSize=500\",\"paramId\":\"repositoryHashId\",\"paramName\":\"aliasName\",\"tools\":{\"edit\":true,\"del\":false}},\"branchName\":{\"rule\":{},\"type\":\"text\",\"required\":false,\"component\":\"vuex-input\",\"label\":\"分支名称\",\"placeholder\":\"默认为所有分支\",\"default\":\"\"}}', '{}', 'system', 0, 'system', 'system', '2019-03-04 18:09:39', '2020-04-26 12:16:06', 0), + ('6e715b411b7e4c35b5944a03b4f488a9', 'GitLab', 'codeGitlabWebHookTrigger', 'codeGitlabWebHookTrigger', '[ \"pipeline\" ]', 'AGENT', '[ \"LINUX\", \"MACOS\", \"WINDOWS\" ]', 'e1bea5430f574f9ea3e0312dc7de9efa', '', 0, 7, NULL, '监听到GitLab代码库的相关事件时启动流水线', '监听到GitLab代码库的相关事件时启动流水线', 0, '1.0.0', '/ms/artifactory/api/user/artifactories/file/download?filePath=%2Ffile%2Fpng%2FgitlabTrigger.png', NULL, b'1', b'1', b'0', NULL, NULL, b'0', '1.0', '{"repositoryType":{"rule":{},"type":"enum","component":"enum-input","required":true,"label":"代码库","list":[{"value":"ID","label":"按代码库选择"},{"value":"NAME","label":"按代码库别名输入"}],"default":"ID","desc":""},"repositoryHashId":{"rule":{},"type":"text","label":"代码库","hasAddItem":true,"required":true,"component":"request-selector","searchable":true,"placeholder":"请选择代码库名称","default":"","url":"/repository/api/user/repositories/{projectId}/hasPermissionList?permission=USE&repositoryType=CODE_GITLAB&page=1&pageSize=100","paramId":"repositoryHashId","paramName":"aliasName","tools":{"edit":true,"del":false}},"repositoryName":{"rule":{},"type":"text","component":"vuex-input","required":true,"hidden":true,"label":"","placeholder":"请输入代码库别名","default":""},"branchName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"分支名称","placeholder":"默认为所有分支","default":""},"excludeBranchName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"排除以下目标分支","placeholder":"多个分支间以英文逗号分隔","default":"","rely":{"operation":"NOT","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"includeSourceBranchName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"监听以下源分支","placeholder":"多个路径间以英文逗号分隔","default":"","rely":{"operation":"OR","expression":[{"key":"eventType","value":"MERGE_REQUEST"},{"key":"eventType","value":"MERGE_REQUEST_ACCEPT"}]}},"excludeSourceBranchName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"排除以下源分支","placeholder":"多个路径间以英文逗号分隔","default":"","rely":{"operation":"OR","expression":[{"key":"eventType","value":"MERGE_REQUEST"},{"key":"eventType","value":"MERGE_REQUEST_ACCEPT"}]}},"tagName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"监听以下tag","placeholder":"默认为所有tag,多个tag间以英文逗号分隔","default":"","rely":{"operation":"AND","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"excludeTagName":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"排除以下tag","placeholder":"多个tag间以英文逗号分隔","default":"","rely":{"operation":"AND","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"includePaths":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"监听以下路径","placeholder":"多个路径间以英文逗号分隔","default":"","rely":{"operation":"NOT","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"excludePaths":{"rule":{},"type":"text","required":false,"component":"vuex-input","label":"排除以下路径","placeholder":"多个路径间以英文逗号分隔","default":"","rely":{"operation":"NOT","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"excludeUsers":{"rule":{},"component":"staff-input","required":false,"multiSelect":true,"label":"排除以下人员","default":[],"rely":{"operation":"NOT","expression":[{"key":"eventType","value":"TAG_PUSH"}]}},"eventType":{"rule":{},"type":"text","required":false,"component":"enum-input","label":"事件类型","list":[{"label":"Commit Push Hook","value":"PUSH","tips":"有新的推送事件到项目时,会触发。 如果是tags推送,则不会触发。"},{"label":"Tag Push Hook","value":"TAG_PUSH","tips":"项目中新增或删除tags时会触发"},{"label":"Merge Request Hook","value":"MERGE_REQUEST","tips":"项目中新增Merge Request时会触发"},{"label":"Merge Request Accept Hook","value":"MERGE_REQUEST_ACCEPT","tips":"项目中Merge Request accept时会触发"}],"default":"PUSH"}}', '{}', 'system', 0, 'system', 'system', '2019-03-04 18:09:39', '2020-04-26 12:16:06', 0), ('eaa2bfb9f95245b482039f9bebccfcc9', 'GitHub', 'codeGithubWebHookTrigger', 'codeGithubWebHookTrigger', '[ \"pipeline\" ]', 'AGENT', '[ \"LINUX\", \"MACOS\", \"WINDOWS\" ]', 'e1bea5430f574f9ea3e0312dc7de9efa', '', 0, 7, NULL, '监听到GitHub代码库的相关事件时启动流水线', '监听到GitHub代码库的相关事件时启动流水线', 0, '1.0.0', '/ms/artifactory/api/user/artifactories/file/download?filePath=%2Ffile%2Fpng%2FgithubTrigger.png', NULL, b'1', b'1', b'0', NULL, NULL, b'0', '1.0', '{\"repositoryType\":{\"rule\":{},\"type\":\"enum\",\"component\":\"enum-input\",\"required\":true,\"label\":\"代码库\",\"list\":[{\"value\":\"ID\",\"label\":\"按代码库选择\"},{\"value\":\"NAME\",\"label\":\"按代码库别名输入\"}],\"default\":\"ID\",\"desc\":\"\"},\"repositoryHashId\":{\"rule\":{},\"type\":\"text\",\"label\":\"\",\"hasAddItem\":true,\"component\":\"request-selector\",\"searchable\":true,\"placeholder\":\"请选择代码库名称\",\"required\":true,\"default\":\"\",\"url\":\"/repository/api/user/repositories/{projectId}/hasPermissionList?permission=USE&repositoryType=GITHUB&page=1&pageSize=100\",\"paramId\":\"repositoryHashId\",\"paramName\":\"aliasName\",\"tools\":{\"edit\":true,\"del\":false},\"list\":[]},\"repositoryName\":{\"rule\":{},\"type\":\"text\",\"component\":\"vuex-input\",\"required\":true,\"hidden\":true,\"label\":\"\",\"placeholder\":\"请输入代码库别名\",\"default\":\"\"},\"branchName\":{\"rule\":{},\"type\":\"text\",\"required\":false,\"component\":\"vuex-input\",\"label\":\"监听以下分支\",\"placeholder\":\"默认为所有分支,多个分支间以英文逗号分隔\",\"default\":\"\"},\"excludeBranchName\":{\"rule\":{},\"type\":\"text\",\"required\":false,\"component\":\"vuex-input\",\"label\":\"排除以下分支\",\"placeholder\":\"多个分支间以英文逗号分隔\",\"default\":\"\"},\"excludeUsers\":{\"rule\":{},\"component\":\"vuex-input\",\"required\":false,\"label\":\"排除以下人员\",\"default\":\"\"},\"eventType\":{\"rule\":{},\"type\":\"text\",\"required\":false,\"component\":\"enum-input\",\"label\":\"事件类型\",\"list\":[{\"label\":\"Commit Push Hook\",\"value\":\"PUSH\",\"tips\":\"有新的推送事件到项目时,会触发。 如果是tags推送,则不会触发。\"},{\"label\":\"Create Branch Or Tag\",\"value\":\"CREATE\",\"tips\":\"项目中新增或branch或tag时会触发\"},{\"label\":\"Pull Request Hook\",\"value\":\"PULL_REQUEST\",\"tips\":\"项目中新增Pull Request时会触发\"}],\"default\":\"PUSH\"}}', '{}', 'system', 2, 'system', 'system', '2019-03-04 18:09:39', '2020-04-26 12:17:06', 0), ('24425d3fa0b645dc8ab23013e9f1df5e','TGit','codeTGitWebHookTrigger','codeTGitWebHookTrigger','[ \"pipeline\" ]','AGENT','[ \"LINUX\", \"MACOS\", \"WINDOWS\" ]','e1bea5430f574f9ea3e0312dc7de9efa','',0,7,NULL,'监听到TGit代码库的相关事件时启动流水线','监听到TGit代码库的相关事件时启动流水线',0,'1.0.0','/ms/artifactory/api/user/artifactories/file/download?filePath=%2Ffile%2Fpng%2FtgitTrigger.png',NULL,b'1',b'1',b'0',NULL,NULL,b'0','1.1','{\"input\":{\"repositoryType\":{\"rule\":{},\"type\":\"enum-input\",\"required\":true,\"label\":\"代码库\",\"list\":[{\"value\":\"ID\",\"label\":\"按代码库选择\"},{\"value\":\"NAME\",\"label\":\"按代码库别名输入\"}],\"default\":\"ID\",\"desc\":\"\"},\"repositoryHashId\":{\"rule\":{},\"label\":\"\",\"hasAddItem\":true,\"type\":\"request-selector\",\"searchable\":true,\"placeholder\":\"请选择代码库名称\",\"required\":true,\"default\":\"\",\"url\":\"/repository/api/user/repositories/{projectId}/hasPermissionList?permission=USE&repositoryType=CODE_TGIT&page=1&pageSize=100\",\"paramId\":\"repositoryHashId\",\"paramName\":\"aliasName\",\"tools\":{\"edit\":true,\"del\":false},\"rely\":{\"operation\":\"OR\",\"expression\":[{\"key\":\"repositoryType\",\"value\":\"ID\"}]}},\"repositoryName\":{\"rule\":{},\"type\":\"vuex-input\",\"required\":true,\"label\":\"\",\"placeholder\":\"请输入代码库别名\",\"default\":\"\",\"rely\":{\"operation\":\"AND\",\"expression\":[{\"key\":\"repositoryType\",\"value\":\"NAME\"}]}},\"branchName\":{\"rule\":{},\"required\":false,\"type\":\"vuex-input\",\"label\":\"监听以下目标分支\",\"placeholder\":\"默认为所有分支,多个分支间以英文逗号分隔\",\"default\":\"\",\"rely\":{\"operation\":\"NOT\",\"expression\":[{\"key\":\"eventType\",\"value\":\"TAG_PUSH\"}]}},\"excludeBranchName\":{\"rule\":{},\"required\":false,\"type\":\"vuex-input\",\"label\":\"排除以下目标分支\",\"placeholder\":\"多个分支间以英文逗号分隔\",\"default\":\"\",\"rely\":{\"operation\":\"NOT\",\"expression\":[{\"key\":\"eventType\",\"value\":\"TAG_PUSH\"}]}},\"includeSourceBranchName\":{\"rule\":{},\"required\":false,\"type\":\"vuex-input\",\"label\":\"监听以下源分支\",\"placeholder\":\"多个路径间以英文逗号分隔\",\"default\":\"\",\"rely\":{\"operation\":\"OR\",\"expression\":[{\"key\":\"eventType\",\"value\":\"MERGE_REQUEST\"},{\"key\":\"eventType\",\"value\":\"MERGE_REQUEST_ACCEPT\"}]}},\"excludeSourceBranchName\":{\"rule\":{},\"required\":false,\"type\":\"vuex-input\",\"label\":\"排除以下源分支\",\"placeholder\":\"多个路径间以英文逗号分隔\",\"default\":\"\",\"rely\":{\"operation\":\"OR\",\"expression\":[{\"key\":\"eventType\",\"value\":\"MERGE_REQUEST\"},{\"key\":\"eventType\",\"value\":\"MERGE_REQUEST_ACCEPT\"}]}},\"tagName\":{\"rule\":{},\"required\":false,\"type\":\"vuex-input\",\"label\":\"监听以下tag\",\"placeholder\":\"默认为所有tag,多个tag间以英文逗号分隔\",\"default\":\"\",\"rely\":{\"operation\":\"AND\",\"expression\":[{\"key\":\"eventType\",\"value\":\"TAG_PUSH\"}]}},\"excludeTagName\":{\"rule\":{},\"required\":false,\"type\":\"vuex-input\",\"label\":\"排除以下tag\",\"placeholder\":\"多个tag间以英文逗号分隔\",\"default\":\"\",\"rely\":{\"operation\":\"AND\",\"expression\":[{\"key\":\"eventType\",\"value\":\"TAG_PUSH\"}]}},\"includePaths\":{\"rule\":{},\"required\":false,\"type\":\"vuex-input\",\"label\":\"监听以下路径\",\"placeholder\":\"多个路径间以英文逗号分隔\",\"default\":\"\",\"rely\":{\"operation\":\"NOT\",\"expression\":[{\"key\":\"eventType\",\"value\":\"TAG_PUSH\"}]}},\"excludePaths\":{\"rule\":{},\"required\":false,\"type\":\"vuex-input\",\"label\":\"排除以下路径\",\"placeholder\":\"多个路径间以英文逗号分隔\",\"default\":\"\",\"rely\":{\"operation\":\"NOT\",\"expression\":[{\"key\":\"eventType\",\"value\":\"TAG_PUSH\"}]}},\"excludeUsers\":{\"rule\":{},\"type\":\"staff-input\",\"required\":false,\"multiSelect\":true,\"label\":\"排除以下人员\",\"default\":[],\"rely\":{\"operation\":\"NOT\",\"expression\":[{\"key\":\"eventType\",\"value\":\"TAG_PUSH\"}]}},\"eventType\":{\"rule\":{},\"required\":false,\"type\":\"enum-input\",\"label\":\"事件类型\",\"list\":[{\"label\":\"Commit Push Hook\",\"value\":\"PUSH\",\"tips\":\"有新的推送事件到项目时,会触发。 如果是tags推送,则不会触发。\"},{\"label\":\"Tag Push Hook\",\"value\":\"TAG_PUSH\",\"tips\":\"项目中新增或删除tags时会触发\"},{\"label\":\"Merge Request Hook\",\"value\":\"MERGE_REQUEST\",\"tips\":\"项目中新增Merge Request时会触发\"},{\"label\":\"Merge Request Accept Hook\",\"value\":\"MERGE_REQUEST_ACCEPT\",\"tips\":\"项目中Merge Request accept时会触发\"}],\"default\":\"PUSH\"},\"block\":{\"rule\":{},\"type\":\"atom-checkbox\",\"required\":false,\"text\":\"同时锁定提交\",\"default\":false,\"hidden\":true}}}','{}','system','2','system','system','2020-08-29 12:18:20','2020-09-03 10:43:18', 0);