cleanupafterdotnetbuild task implemented

dependabot/npm_and_yarn/BuildServer/eslint-7.2.0
Inga 🏳‍🌈 9 years ago
parent 5fa6724215
commit 6bad51f56e
  1. 39
      BuildServer/lib/tasks/cleanupafterdotnetbuild.js
  2. 4
      BuildServer/lib/tasks/dotnetbuild.js

@ -0,0 +1,39 @@
"use strict";
var glob = require('glob');
var deleteFromCode = require('./deletefromcode');
module.exports = function (params, processor) {
return {
process: function () {
glob("**/obj/{Debug,Release}/*.{dll,pdb,xml}", {
dot: true,
cwd: processor.context.exported
}, function (err, files) {
if (err) {
processor.onError(err);
return processor.done();
}
if (!files || !files.length) {
return processor.done();
}
return processor.processTask({
type: "parallel",
params: {
tasks: files.map(function (file) {
return {
name: file,
type: "deletefromcode",
params: {
filename: file
}
};
})
}
}, processor.done.bind(processor));
})
}
};
};

@ -36,6 +36,10 @@ module.exports = function (params, processor) {
} }
}); });
tasks.push({
type: "cleanupafterdotnetbuild"
});
return sequential({ return sequential({
tasks: tasks tasks: tasks
}, processor); }, processor);

Loading…
Cancel
Save