Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maven --batch-mode not supressing jib progress report #1513

Closed
fralalonde opened this issue Feb 27, 2019 · 5 comments
Closed

Maven --batch-mode not supressing jib progress report #1513

fralalonde opened this issue Feb 27, 2019 · 5 comments

Comments

@fralalonde
Copy link
Contributor

When captured by non-interactive terminal, Jib's maven plugin output of transfer progress makes job logs much longer / dirtier than they should be. This is a minor, but very real pain point when trying to keep Continuous Integration logs meaningful and readable.

Maven provides the --batch-mode CLI option to suppress such progress reports. Jib should use the same mechanism to suppress it's output when specified.

Here's a partial sample output of jib when running in non-interactive terminal:

...
[INFO] Executing tasks:
[INFO] [==================            ] 60.7% complete
[INFO] > building dependencies layer
[INFO] > setting up to push layers
[INFO] > setting up to push layers
[INFO] > pulling base image layer sha256:6ac6f91f019c1...
[INFO] 
[INFO] Executing tasks:
[INFO] [==================            ] 60.8% complete
[INFO] > building dependencies layer
[INFO] > setting up to push layers
[INFO] > setting up to push layers
[INFO] > pulling base image layer sha256:6ac6f91f019c1...
[INFO] 
[INFO] Executing tasks:
[INFO] [==================            ] 60.9% complete
[INFO] > building dependencies layer
[INFO] > setting up to push layers
[INFO] > setting up to push layers
[INFO] > pulling base image layer sha256:6ac6f91f019c1...
[INFO] 
[INFO] Executing tasks:
[INFO] [==================            ] 61.0% complete
...
@chanseokoh
Copy link
Member

Thanks for the PR. I also suggested in the past the batch mode should suppress the progress. Perhaps we should seriously consider it.

For now, you can set -Djib.console=plain to suppress the progress.

@fralalonde
Copy link
Contributor Author

fralalonde commented Feb 27, 2019

Thanks, I'll try that, still better than grep-filtering.

@chanseokoh
Copy link
Member

The previous discussion around disabling the progress for the batch mode: #1344 (comment)

@chanseokoh
Copy link
Member

Fixed by #1514.

@chanseokoh
Copy link
Member

@fralalonde v1.0.2 released with the fix. Thanks for your contribution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants