diff --git a/oms_jenkins b/oms_jenkins index 259aea8..a7ddd4b 100644 --- a/oms_jenkins +++ b/oms_jenkins @@ -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}" } }' """