Verbosity improved

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent c34c42001d
commit 7a159c6a28
  1. 6
      BuildServer/lib/builder.js
  2. 1
      BuildServer/routes/postreceive.js
  3. 4
      BuildServer/routes/release.js

@ -12,16 +12,18 @@ var settings = require('../settings');
var codePostfix = "";
var notifyStatus = function (options, callback) {
settings.createGithub(options.owner).statuses.create({
var status = {
user: options.owner,
repo: options.reponame,
sha: options.hash,
state: options.state,
target_url: settings.siteRoot + "status/" + options.owner + "/" + options.reponame + "/" + options.hash,
description: ((options.description || "") + "").substr(0, 140)
}, function (err, result) {
};
settings.createGithub(options.owner).statuses.create(status, function (err, result) {
if (err) {
console.log("Error while creating status: " + err);
console.log(status);
return callback(err);
}
return callback();

@ -79,7 +79,6 @@ var processPullRequest = function (req, res, payload) {
}
if (action === "closed") {
console.log(pullRequest);
return res.send("");
}

@ -5,11 +5,11 @@ var path = require('path'),
Zip = require('adm-zip');
var getReport = function(releasePath, callback) {
var reportFile = releasePath + "/report.json";
var reportFile = releasePath + "report.json";
fs.exists(reportFile, function (exists) {
if (!exists) {
return callback("ReportFileNotFound");
return callback("ReportFileNotFound: " + reportFile);
}
return fs.readFile(reportFile, function (err, dataBuffer) {

Loading…
Cancel
Save