dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 11 years ago
parent 12a761d2d6
commit c6e39dee85
  1. 6
      BuildServer/lib/builder.js

@ -62,9 +62,9 @@ var build = function (options, callback) {
fs.writeFileSync(options.app.get('releasepath') + "/" + owner + "/" + reponame + "/$revs/" + rev + ".branch", branch); fs.writeFileSync(options.app.get('releasepath') + "/" + owner + "/" + reponame + "/$revs/" + rev + ".branch", branch);
var done = function (err, result) { var done = function (err, result) {
var errorMessage = ((result.errors.$allMessages || [])[0] || {}).message, var errorMessage = result ? ((result.errors.$allMessages || [])[0] || {}).message : err,
warnMessage = ((result.warns.$allMessages || [])[0] || {}).message, warnMessage = result ? ((result.warns.$allMessages || [])[0] || {}).message : err,
infoMessage = ((result.infos.$allMessages || [])[0] || {}).message; infoMessage = result ? ((result.infos.$allMessages || [])[0] || {}).message : err;
fs.writeFile(release + "/report.json", JSON.stringify({err: err, result: result}), function (writeErr) { fs.writeFile(release + "/report.json", JSON.stringify({err: err, result: result}), function (writeErr) {
statusQueue.push(function (callback) { statusQueue.push(function (callback) {

Loading…
Cancel
Save