后续收尾
This commit is contained in:
@@ -77,7 +77,8 @@ const handleZip = (id, ws) => {
|
||||
http.get(`/view/devops/job/${buildConfig.task}/${currentJob}/api/json`).then(res => {
|
||||
if (['SUCCESS', 'UNSTABLE'].includes(res.data.result)) {
|
||||
clearInterval(timer)
|
||||
resolve(endUpdateSql())
|
||||
progress.set(90, id)
|
||||
endUpdateSql().then(resolve)
|
||||
} else if (res.data.result == 'ABORTED') {
|
||||
clearInterval(timer)
|
||||
reject("构建取消")
|
||||
@@ -86,8 +87,11 @@ const handleZip = (id, ws) => {
|
||||
reject("构建失败")
|
||||
}
|
||||
})
|
||||
}, 1000)
|
||||
})).catch(err => {
|
||||
}, 2000)
|
||||
}))
|
||||
.then(() => db.detail({table: "node_custom_config", id}))
|
||||
.then(row => progress.finish(row))
|
||||
.catch(err => {
|
||||
console.log(err)
|
||||
const msg = `执行失败:${err.cmd || err}`
|
||||
return errorUpdateSql(msg)
|
||||
|
||||
Reference in New Issue
Block a user