|
|
@ -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) { |
|
|
|