question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maven --batch-mode not supressing jib progress report

See original GitHub issue

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
...

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
chanseokohcommented, Mar 5, 2019

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

0reactions
chanseokohcommented, Mar 1, 2019

Fixed by #1514.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found