Optimized paths length

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent 2e50e944b0
commit 4d6af79abf
  1. 7
      BuildServer/lib/builder.js

@ -8,6 +8,9 @@ var processor = require('./task-processor');
var mailSender = require('./mail-sender'); var mailSender = require('./mail-sender');
var settings = require('../settings'); var settings = require('../settings');
//var codePostfix = "/code";
var codePostfix = "";
var notifyStatus = function (options, callback) { var notifyStatus = function (options, callback) {
settings.createGithub(options.owner).statuses.create({ settings.createGithub(options.owner).statuses.create({
user: options.owner, user: options.owner,
@ -34,7 +37,7 @@ var build = function (options, callback) {
skipGitLoader = options.skipGitLoader, skipGitLoader = options.skipGitLoader,
local = options.app.get('gitpath') + "/r/", local = options.app.get('gitpath') + "/r/",
tmp = options.app.get('tmpcodepath') + "/" + rev, tmp = options.app.get('tmpcodepath') + "/" + rev,
exported = tmp + "/code", exported = tmp + codePostfix,
release = options.app.get('releasepath') + "/" + owner + "/" + reponame + "/" + branch + "/" + rev, release = options.app.get('releasepath') + "/" + owner + "/" + reponame + "/" + branch + "/" + rev,
statusQueue = async.queue(function (task, callback) { statusQueue = async.queue(function (task, callback) {
task(callback); task(callback);
@ -103,7 +106,7 @@ var build = function (options, callback) {
local: local, local: local,
branch: branch, branch: branch,
hash: rev, hash: rev,
exported: tmp + "/code" exported: tmp + codePostfix
}, function(err) { }, function(err) {
if (err) { if (err) {
console.log(err); console.log(err);

Loading…
Cancel
Save