Sending Binary files via API
TeamCity ships with tcc.jar, this is a supported program by JetBrains that has the ability to send personal builds of binary files. It uses the URL:
/uploadChanges.html?description=<description-text>&commitType=0
I am wanting also wanting to send personal builds of binary files to this end point. TeamCity keeps throwing an error 500 Patch file is corrupted in response.
Has anyone else figured out how to send binary files to uploadChanges.html?
Is there any different headers you send with your request?
What format is your diff file?
Please sign in to leave a comment.
Hi,
Did you follow the instructions given in the Direct Patch Upload documentation to generate the patch?
Hey Guilherme,
Thank you for having a look at this, I have seen this documentation before however as we do not use Git with TeamCity (We use Perforce). I created the patch by hand in the same unified diff format but the uploadChanges.html address rejected that.
uploadChanges.html seems to take a different patch format. Compared to uploadDiffChanges.html.
Hi,
Perforce also has a
diffutility:https://www.perforce.com/manuals/cmdref/Content/CmdRef/p4_diff.html
The following thread might also be helpful:
https://stackoverflow.com/questions/19712728/perforce-create-patch-file-of-differences-against-have-revision