gradlejib

How to silence logs in Java Image Builder (jib)


Using JIB in CI produces a mountain of logs because it prints progress, is there a simple way to turn them off?

In my case I am using the Gradle plugin, but I suspect it is the same issue with the Maven plugin


Solution

  • I suggest to use the property jib.console as described in https://github.com/GoogleContainerTools/jib/tree/master/jib-gradle-plugin. Simply set

    -Djib.console=plain
    

    That should make all the verbose output during the image build disappear.