While trying to upload file from Jenkins Pipeline, I'm faced to an inextricable issue.
TUS protocol suggest a PATCH to send content. But this method is not supported by OpenJDK:
https://bugs.openjdk.java.net/browse/JDK-7016595
In such situation, Tus Java implementation switches to POST+X-HTTP-Method-Override=PATCH:
https://github.com/tus/tus-java-client/
This behavior is quite standard and documented in TUS:
https://tus.io/protocols/resumable-upload.html#x-http-method-override
But it seems the TUS implementation in Tuleap does not support this feature. The POST method is not routed and the TusServer does not check this situation.
Other PHP implementation explicitly support and test this approach:
https://github.com/ankitpokhrel/tus-php
As Jenkins is the reference CI system, it would be useful to be compliant with this solution to let Java client working.