测试集成脚本
This commit is contained in:
@@ -12,7 +12,7 @@ pipeline {
|
|||||||
doGenerateSubmoduleConfigurations: false,
|
doGenerateSubmoduleConfigurations: false,
|
||||||
extensions: [],
|
extensions: [],
|
||||||
submoduleCfg: [],
|
submoduleCfg: [],
|
||||||
userRemoteConfigs: [[url: 'http://git.sinoecare.com/lab/dvcp-node-service.git',credentialsId:'b42f8b48-95a4-4039-ae51-b1dff06d943b']]
|
userRemoteConfigs: [[url: 'http://git.sinoecare.com/lab/dvcp-node-service.git -b dev',credentialsId:'b42f8b48-95a4-4039-ae51-b1dff06d943b']]
|
||||||
])
|
])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -39,9 +39,9 @@ pipeline {
|
|||||||
success {
|
success {
|
||||||
script{
|
script{
|
||||||
echo 'Deployment finished successfully.'
|
echo 'Deployment finished successfully.'
|
||||||
|
|
||||||
def currentTime = new Date().format('yyyy-MM-dd HH:mm:ss', TimeZone.getTimeZone('Asia/Shanghai'))
|
def currentTime = new Date().format('yyyy-MM-dd HH:mm:ss', TimeZone.getTimeZone('Asia/Shanghai'))
|
||||||
|
|
||||||
sh """
|
sh """
|
||||||
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5c25c37c-0b91-4d1d-95d3-98a2bb7055c7' \\
|
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5c25c37c-0b91-4d1d-95d3-98a2bb7055c7' \\
|
||||||
-H 'Content-Type: application/json' \\
|
-H 'Content-Type: application/json' \\
|
||||||
@@ -50,7 +50,7 @@ pipeline {
|
|||||||
"markdown": {
|
"markdown": {
|
||||||
"content": ">构建结果:oms构建打包服务部署完成!\\n
|
"content": ">构建结果:oms构建打包服务部署完成!\\n
|
||||||
>完成时间:${currentTime}\\n
|
>完成时间:${currentTime}\\n
|
||||||
>构建时间:${currentBuild.durationString}"
|
>构建时间:${currentBuild.durationString}"
|
||||||
}
|
}
|
||||||
}'
|
}'
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user