测试集成脚本

This commit is contained in:
aixianling
2024-10-16 16:39:18 +08:00
parent 0e23ec7085
commit cbfb953e01

View File

@@ -12,7 +12,7 @@ pipeline {
doGenerateSubmoduleConfigurations: false,
extensions: [],
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 {
script{
echo 'Deployment finished successfully.'
def currentTime = new Date().format('yyyy-MM-dd HH:mm:ss', TimeZone.getTimeZone('Asia/Shanghai'))
sh """
curl 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=5c25c37c-0b91-4d1d-95d3-98a2bb7055c7' \\
-H 'Content-Type: application/json' \\
@@ -50,7 +50,7 @@ pipeline {
"markdown": {
"content": ">构建结果oms构建打包服务部署完成!\\n
>完成时间:${currentTime}\\n
>构建时间:${currentBuild.durationString}"
>构建时间:${currentBuild.durationString}"
}
}'
"""