Maven --batch-mode not supressing jib progress report
See original GitHub issueWhen 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
...
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Allow to suppress download messages in interactive mode
When running Maven in batch mode (with option -B) it's possible to suppress download messages using "-Dorg.slf4j.
Read more >disable maven download progress indication - Stack Overflow
Starting with Maven 3.6.1, Maven now has an option to suppress the transfer progress when downloading/uploading in interactive mode.
Read more >Pipeline Maven Integration - Jenkins Plugins
This plugin provides integration with Pipeline, configures maven environment to use within a pipeline job by calling sh mvn or bat mvn.
Read more >Building Java containers with Jib - Google Cloud
This tutorial shows how to use Jib to build an optimal Java container and deploy to Cloud Run.
Read more >CI/CD for Java Maven using GitHub Actions - Medium
Say you want to send build status messages to through Slack? ... will execute its arguments in the command-line of the current job...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@fralalonde v1.0.2 released with the fix. Thanks for your contribution!
Fixed by #1514.