Commit df3e93ed authored by zhouzihao's avatar zhouzihao

fix-little fix

parent 7d9983a6
...@@ -12,14 +12,10 @@ module.exports = { ...@@ -12,14 +12,10 @@ module.exports = {
var branch = body.branch; var branch = body.branch;
var version = body.version; var version = body.version;
var result = await buildshell.build(p_id, env_id, branch, version); var result = await buildshell.build(p_id, env_id, branch, version);
res.end(result); res.end("{success:true}");
} catch (error) { } catch (error) {
console.error(error); console.log(error);
if (_.isObject(error)) { res.end("{success:false}");
error = JSON.stringify(error);
}
console.error(error);
res.end(error);
} }
})(); })();
} }
......
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