Commit df3e93ed authored by zhouzihao's avatar zhouzihao

fix-little fix

parent 7d9983a6
......@@ -12,14 +12,10 @@ module.exports = {
var branch = body.branch;
var version = body.version;
var result = await buildshell.build(p_id, env_id, branch, version);
res.end(result);
res.end("{success:true}");
} catch (error) {
console.error(error);
if (_.isObject(error)) {
error = JSON.stringify(error);
}
console.error(error);
res.end(error);
console.log(error);
res.end("{success:false}");
}
})();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment