|
|
|
@ -61,7 +61,7 @@ router.post('/deploy', function(req, res, next) { |
|
|
|
|
description: description |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
dingding(`开始自动部署${description}|${name},更新日志${commitsMsg}`) |
|
|
|
|
dingding(`开始自动部署${name}|${description},更新日志:${commitsMsg}`) |
|
|
|
|
|
|
|
|
|
const promise = new Promise((resolve, reject) => { |
|
|
|
|
const spawnObj = spawn('updateRisk', [name], {encoding: 'utf-8'}); |
|
|
|
@ -91,8 +91,7 @@ router.post('/deploy', function(req, res, next) { |
|
|
|
|
|
|
|
|
|
//部署完毕事件
|
|
|
|
|
router.get('/finsh', function(req, res, next) { |
|
|
|
|
dingding(`${req.query.name}|${startDeploy[req.query.name].description}自动部署成功,
|
|
|
|
|
花费时间:${moment().diff(startDeploy[req.query.name].startTime,'seconds',true)}秒`)
|
|
|
|
|
dingding(`${req.query.name}|${startDeploy[req.query.name].description}自动部署成功,花费时间:${moment().diff(startDeploy[req.query.name].startTime,'seconds',true)}秒`) |
|
|
|
|
res.json({message:`仓库代码${req.query.name}部署成功`}) |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|