madiator.com/build/afterAllArtifactBuild.js

13 lines
327 B
JavaScript
Raw Permalink Normal View History

2021-08-16 12:11:25 +02:00
const fs = require('fs');
module.exports = async function(params) {
const { artifactPaths } = params;
for (var i = 0; i < artifactPaths.length; i++) {
const artifactPath = artifactPaths[i];
if (artifactPath.includes('.blockmap') || artifactPath.includes('.zip')) {
fs.unlinkSync(artifactPath);
}
}
};