3

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: ...
Jankapunkt
  • 8,128
  • 4
  • 30
  • 59
Nelson G.
  • 5,145
  • 4
  • 43
  • 54
  • 1
    Add `--batch-mode` or the abbreviated variant `-B` to your maven command. – khmarbaise Mar 23 '16 at 15:00
  • It works! thanks. I fount another answer about this point here : http://stackoverflow.com/a/21638827/779338 – Nelson G. Mar 24 '16 at 09:32
  • @khmarbaise thanks for the solution, you should post your solution as an answer so it can get accepted by Nelson G. ! – Pom12 Jul 27 '16 at 11:53

1 Answers1

5

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

khmarbaise
  • 92,914
  • 28
  • 189
  • 235