签入版本
This commit is contained in:
parent
2c2b79fad0
commit
bdb883149e
28
README.md
28
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
|
||||
```
|
||||
@ -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 {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user