diff --git a/helm-charts/core/ci/base/default_env.yaml b/helm-charts/core/ci/base/default_env.yaml index 1d69ef95d33..958170667ba 100644 --- a/helm-charts/core/ci/base/default_env.yaml +++ b/helm-charts/core/ci/base/default_env.yaml @@ -17,7 +17,7 @@ bkCiIamCallbackUser: bk_iam bkCiAppCode: bk_ci bkCiNotifyWeworkSendChannel: weworkAgent bkCiInfluxdbDb: agentMetrix -bkCiDocsUrl: https://bk.tencent.com +bkCiDocsUrl: https://bk.tencent.com/docs bkCiArtifactoryRealm: local bkRepoHost: repo.demo.com bkRepoFqdn: repo.demo.com diff --git a/src/backend/ci/core/repository/biz-repository/src/main/kotlin/com/tencent/devops/repository/resources/UserRepositoryConfigResourceImpl.kt b/src/backend/ci/core/repository/biz-repository/src/main/kotlin/com/tencent/devops/repository/resources/UserRepositoryConfigResourceImpl.kt index 228d1f966bb..56d776e20d8 100644 --- a/src/backend/ci/core/repository/biz-repository/src/main/kotlin/com/tencent/devops/repository/resources/UserRepositoryConfigResourceImpl.kt +++ b/src/backend/ci/core/repository/biz-repository/src/main/kotlin/com/tencent/devops/repository/resources/UserRepositoryConfigResourceImpl.kt @@ -45,7 +45,7 @@ class UserRepositoryConfigResourceImpl @Autowired constructor( companion object { // 后续需改造数据库字段 val DOC_URL_MAP = mapOf( - ScmType.GITHUB.name to "/docs/markdown/Devops//UserGuide/Setup/guidelines-bkdevops-githubapp.md" + ScmType.GITHUB.name to "/markdown/Devops/UserGuide/Setup/guidelines-bkdevops-githubapp.md" ) } diff --git a/support-files/sql/5001_init_dml/5001_ci_project-init_dml_mysql.sql b/support-files/sql/5001_init_dml/5001_ci_project-init_dml_mysql.sql index e7866135c02..b5706381f24 100755 --- a/support-files/sql/5001_init_dml/5001_ci_project-init_dml_mysql.sql +++ b/support-files/sql/5001_init_dml/5001_ci_project-init_dml_mysql.sql @@ -3,19 +3,19 @@ SET NAMES utf8mb4; -- 服务初始化 INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('代码库(Code)', 'Code', 2, '/codelib/', '/codelib/', 'amd', '', '/codelib/codelib.css', '/codelib/codelib.js', b'1', b'1', 'path', 'ok', 'system', '2019-06-05 17:12:47', 'system', '2019-06-05 17:12:47', b'0', '', '', 99, 'codelib', '', ''); -INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('流水线(Pipeline)', 'Pipeline', 2, '/pipelines/', '/pipeline/', 'iframe', '/pipeline/', '', '', b'1', b'1', 'path', 'ok', 'system', '2019-06-05 17:12:47', NULL, '2019-06-05 17:12:47', b'0', NULL, NULL, 97, 'pipeline', '^\\/console\\/pipeline\\/[^\\/]+\\/list(\\/)?(allPipeline|myPipeline|collect)?$,^\\/console\\/pipeline\\/[^\\/]+\\/[^\\/]+\\/detail\\/[^\\/]+(\\/executeDetail(\\/\\d*)?)?$,^\\/console\\/pipeline\\/[^\\/]+\\/[^\\/]+\\/history$', '/docs/markdown/Devops/UserGuide/Setup/install-bkci.md'); +INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('流水线(Pipeline)', 'Pipeline', 2, '/pipelines/', '/pipeline/', 'iframe', '/pipeline/', '', '', b'1', b'1', 'path', 'ok', 'system', '2019-06-05 17:12:47', NULL, '2019-06-05 17:12:47', b'0', NULL, NULL, 97, 'pipeline', '^\\/console\\/pipeline\\/[^\\/]+\\/list(\\/)?(allPipeline|myPipeline|collect)?$,^\\/console\\/pipeline\\/[^\\/]+\\/[^\\/]+\\/detail\\/[^\\/]+(\\/executeDetail(\\/\\d*)?)?$,^\\/console\\/pipeline\\/[^\\/]+\\/[^\\/]+\\/history$', '/markdown/Devops/UserGuide/Setup/install-bkci.md'); INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('凭证管理(Ticket)', 'Ticket', 8, '/ticket/', '/ticket/', 'amd', '', '/ticket/ticket.css', '/ticket/ticket.js', b'1', b'1', 'path', 'ok', 'system', '2019-06-05 17:13:26', 'system', '2019-06-05 17:13:26', b'0', '', '', 95, 'ticket', '', ''); INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('环境管理(Env)', 'Env', 4, '/environment/', '/environment/', 'amd', '', '/environment/environment.css', '/environment/environment.js', b'1', b'1', 'path', 'ok', 'system', '2019-06-05 17:13:27', 'system', '2019-06-05 17:13:27', b'0', '', '', 94, 'environment', '', ''); INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('研发商店(Store)', 'Store', 8, '/store/', '/store/', 'amd', '', '/store/store.css', '/store/store.js', b'0', b'1', 'path', 'ok', 'system', '2019-06-05 17:13:29', 'system', '2019-06-05 17:13:29', b'0', '', '', 93, 'store', '', ''); INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('质量红线(Gate)', 'Gate', 3, '/quality/', '/quality/', 'amd', '', '/quality/quality.css', '/quality/quality.js', b'1', b'1', 'path', 'ok', 'system', '2019-06-05 17:13:29', 'system', '2019-06-05 17:13:29', b'0', '', '', 92, 'quality', '', ''); -INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('代码检查(CodeCC)', 'CodeCC', 2, '/codecc/', '/codecc/', 'iframe', '/codecc/', '', '', b'1', b'1', 'path', 'developing', 'system', '2019-06-05 17:12:47', NULL, '2019-06-05 17:12:47', b'1', NULL, NULL, 89, 'codecc', '', '/docs/markdown/Devops/UserGuide/Setup/install-bkcodecc.md'); +INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('代码检查(CodeCC)', 'CodeCC', 2, '/codecc/', '/codecc/', 'iframe', '/codecc/', '', '', b'1', b'1', 'path', 'developing', 'system', '2019-06-05 17:12:47', NULL, '2019-06-05 17:12:47', b'1', NULL, NULL, 89, 'codecc', '', '/markdown/Devops/UserGuide/Setup/install-bkcodecc.md'); INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('度量数据(Measure)', 'Measure', 2, '/measure/', '/measure/', 'iframe', '/measure/', '', '', b'1', b'1', 'path', 'planning', 'system', '2019-06-05 17:12:47', NULL, '2019-06-05 17:12:47', b'1', NULL, NULL, 91, 'measure', '', ''); INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('敏捷开发(Teamwork)', 'Teamwork', 1, '/teamwork/', '/teamwork/', 'amd', '', '/teamwork/teamwork.css', '/teamwork/teamwork.js', b'1', b'1', 'path', 'planning', 'system', '2019-06-05 17:12:48', 'system', '2019-06-05 17:12:48', b'1', '', '', 90, 'teamwork', '', ''); -INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('编译加速(Turbo)', 'Turbo', 2, '/turbo/', '/turbo/', 'amd', '', '', '', b'1', b'1', 'path', 'developing', 'system', '2019-06-05 17:12:47', NULL, '2019-06-05 17:12:47', b'1', NULL, NULL, 89, 'turbo', '', '/docs/markdown/Devops/UserGuide/Services/Turbo/linux-tubo-speed/new_plan.md'); +INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('编译加速(Turbo)', 'Turbo', 2, '/turbo/', '/turbo/', 'amd', '', '', '', b'1', b'1', 'path', 'developing', 'system', '2019-06-05 17:12:47', NULL, '2019-06-05 17:12:47', b'1', NULL, NULL, 89, 'turbo', '', '/markdown/Devops/UserGuide/Services/Turbo/linux-tubo-speed/new_plan.md'); INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('Metrics 看板(Metrics)', 'Metrics', 8, '/metrics/', '/metrics/', 'iframe', '/metrics/', '', '', b'1', b'1', 'path', 'new', 'system', '2022-10-24 21:11:48', 'system', '2022-10-24 21:11:48', b'0', '', '', 99, 'metrics', '', ''); INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('项目管理(manage)', 'Project', 8, '/manage/', '/manage/', 'iframe', '/manage/', '', '', b'0', b'1', 'path', 'planning', 'system', '2023-04-06 11:13:26', 'system', '2023-04-06 11:13:26', b'0', '', '', 97, 'project', '', ''); INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('权限管理(permission)', 'Permission', 8, '/permission/', '/permission/', 'iframe', '/permission/', '', '', b'0', b'1', 'path', 'ok', 'system', '2023-04-06 11:13:26', 'system', '2023-04-06 11:13:26', b'0', '', '', 97, 'perm', '', ''); -INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('制品库(Repo)', 'Repo', 2, '/repo/', '/repo/', 'iframe', 'https://bkrepo.yourdomain.com/ui/', '', '', b'1', b'1', 'path', 'planning', 'system', '2021-06-17 10:58:25', 'system', '2021-06-17 10:58:25', b'1', '', '', 96, 'artifactory', '', '/docs/markdown/Devops/UserGuide/Setup/install-bkrepo.md'); +INSERT IGNORE INTO `T_SERVICE` (`name`, `english_name`, `service_type_id`, `link`, `link_new`, `inject_type`, `iframe_url`, `css_url`, `js_url`, `show_project_list`, `show_nav`, `project_id_type`, `status`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `gray_css_url`, `gray_js_url`, `weight`, `logo_url`, `web_socket`, `DOC_URL`) VALUES ('制品库(Repo)', 'Repo', 2, '/repo/', '/repo/', 'iframe', 'https://bkrepo.yourdomain.com/ui/', '', '', b'1', b'1', 'path', 'planning', 'system', '2021-06-17 10:58:25', 'system', '2021-06-17 10:58:25', b'1', '', '', 96, 'artifactory', '', '/markdown/Devops/UserGuide/Setup/install-bkrepo.md'); -- 服务分类初始化 REPLACE INTO `T_SERVICE_TYPE` (`id`, `title`, `english_title`, `created_user`, `created_time`, `updated_user`, `updated_time`, `deleted`, `weight`) VALUES (1, '项目管理', 'Case', 'system', '2019-06-05 17:13:55', 'system', '2019-06-05 17:13:55', b'1', NULL);