From bdb883149e8be9747e1d215f7f23054c14def180 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Sun, 21 Sep 2025 22:14:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AD=BE=E5=85=A5=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 28 ++++++++++++------------ src/com/node/stages/DeployService.groovy | 4 ---- 2 files changed, 14 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index 762dcb1..fe5a422 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ docker system prune ```groovy Name: share-library # 库的名称(必须与@Library中的名称匹配) -Default version: master # 默认分支,可以是 master、yunheng 等 +Default version: master # 默认分支,可以是 master、test 等 Retrieval method: Modern SCM Source Code Management: Git Project Repository: https://github.com/your-username/share-library.git @@ -37,7 +37,7 @@ Credentials: 添加您的 Git 凭据 ID Name 必须与 @Library('share-library')_ 中的名称完全匹配 - 如果使用 @yunheng 分支,需要确保该分支在 Git 仓库中存在 + 如果使用 @master 分支,需要确保该分支在 Git 仓库中存在 凭据必须有访问 Git 仓库的权限 @@ -45,18 +45,6 @@ Credentials: 添加您的 Git 凭据 ID Jenkins安装插件: 1、HTTP Request -钉钉客服: - -``` -小钉钉客服1号: -https://oapi.dingtalk.com/robot/send?access_token=976ae1a272bc79a1c3bf2eba97dae488eec80b57387d17e1c8352627b963bb5c -SEC0e2d1bed404cc0615885321276766598ce2efefcd0be23bfffe96c6b8f4d0ed6 - -小钉钉客服2号: -https://oapi.dingtalk.com/robot/send?access_token=c7fd2348813bacd0797f141bc579e7f1db31d50e00ebc8af658a769534ac755c -SEC26137d6d5ff8f9ecda917e787ec31c2b3804e7820d93363a1a9f0770f1720f2d -``` - 钉钉消息案例: ``` @@ -224,4 +212,16 @@ notificationService.sendDeploymentNotification( status: "success", deployUrl: "http://deploy.example.com" ) +``` + +钉钉客服: + +``` +小钉钉客服1号: +https://oapi.dingtalk.com/robot/send?access_token=976ae1a272bc79a1c3bf2eba97dae488eec80b57387d17e1c8352627b963bb5c +SEC0e2d1bed404cc0615885321276766598ce2efefcd0be23bfffe96c6b8f4d0ed6 + +小钉钉客服2号: +https://oapi.dingtalk.com/robot/send?access_token=c7fd2348813bacd0797f141bc579e7f1db31d50e00ebc8af658a769534ac755c +SEC26137d6d5ff8f9ecda917e787ec31c2b3804e7820d93363a1a9f0770f1720f2d ``` \ No newline at end of file diff --git a/src/com/node/stages/DeployService.groovy b/src/com/node/stages/DeployService.groovy index a3e74f8..3c4e816 100644 --- a/src/com/node/stages/DeployService.groovy +++ b/src/com/node/stages/DeployService.groovy @@ -115,10 +115,6 @@ class DeployService implements Serializable { // ========================================================================== script.echo "📦 开始打包构建产物..." - // 生成打包文件名,格式:项目名-构建ID.tar.gz - // 如果参数中已指定包名则使用指定名称,否则自动生成 - def packageName = params.packageName ?: "${params.projectName}-${script.env.BUILD_ID ?: 'unknown'}.tar.gz" - // 切换到项目目录执行打包操作 script.dir(params.servicePath) { try {