mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Removing progress bar for Jenkins Env
This commit is contained in:
parent
5b7639a189
commit
ccd199d3cd
1 changed files with 14 additions and 12 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue