Removing progress bar for Jenkins Env

This commit is contained in:
Chris Cowan 2014-09-08 15:44:20 -07:00
parent 5b7639a189
commit ccd199d3cd

View file

@ -21,19 +21,21 @@ module.exports = function (grunt) {
out.on('close', done).on('error', done);
var req = request.get(url);
var bar;
req.on('response', function (resp) {
var total = parseInt(resp.headers['content-length'], 10);
bar = new ProgressBar('[:bar] :percent :etas', {
complete: '=',
incomplete: ' ',
width: 80,
clear: true,
total: total
if (!process.env.JENKINS_HOME) {
req.on('response', function (resp) {
var total = parseInt(resp.headers['content-length'], 10);
bar = new ProgressBar('[:bar] :percent :etas', {
complete: '=',
incomplete: ' ',
width: 80,
clear: true,
total: total
});
});
});
req.on('data', function (buffer) {
bar.tick(buffer.length);
});
req.on('data', function (buffer) {
bar.tick(buffer.length);
});
}
req.pipe(unzip).pipe(out);
});
} else {