Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Jenkins: too many logs when maven deploy called

In jenkins log, there are too many logs when maven plugin maven-deploy-plugin:2.8.2:deploy is called.

For example, when I try to upload a 50MB war to Nexus, there are:

Uploading: ...
2/51018 KB
4/51018 KB
6/51018 KB
...
25412/51018 KB
...
51018/51018 KB
Uploaded: ...

There is a line for each 2 KB, in this example there are 51018/2 = 25509 lines !

How to configure jenkins (or maven) to only have the upload status like :

Uploading: ...
51018/51018 KB
Uploaded: ...
like image 289
Nelson G. Avatar asked Dec 12 '25 03:12

Nelson G.


1 Answers

You can add --batch-mode or the abbreviated variant -B to your maven command.

like image 115
khmarbaise Avatar answered Dec 13 '25 16:12

khmarbaise



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!