Improved reliability

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 8 years ago
parent 89f186308b
commit 7b52f941bd
  1. 4
      BuildServer/lib/commenter.js

@ -139,7 +139,7 @@ const getStatusMessageFromRelease = (app, options, callback) => {
fs.exists(reportFile, (exists) => {
if (!exists) {
return fs.exists(releaseDir, (dirExists) => {
return setTimeout(() => fs.exists(releaseDir, (dirExists) => {
if (!dirExists) {
return callback("Release directory not found. Probably repository hooks are not configured");
}
@ -149,7 +149,7 @@ const getStatusMessageFromRelease = (app, options, callback) => {
//maybe it is building right now
return setTimeout(() => getStatusMessageFromRelease(app, options, callback), 10000);
});
}), 2000);
}
return setTimeout(() => fs.readFile(reportFile, (err, dataBuffer) => {

Loading…
Cancel
Save