Perforce Personal Build Corrupted Patch File


I'm trying to run a personal build through the UI by uploading a unified diff of perforce changes (job has a perforce vcs root). The diff is accepted, however when I try to view the changes I get:

jetbrains.buildServer.vcs.patches.UnsuccessfulPatchException: Patch file is corrupted

The only way I've been able to successfully start a personal build and view the changes in TeamCity has been through Intellij. Any patches uploaded through the UI fail with the above error. I've also noticed if I hover over uploaded changes, it displays "jetbrains.git://path/to/file", while changes submitted through intellij display "perforce://perforce-server////path/to/file".

Am I missing something from my unified diff file that indicates the changes are in perforce? I'm running "p4 diff -du" to generate the file. The format ends up something like this:

--- test1.txt 2020-03-06 19:51:24.000000000 -0800
+++ test2.txt 2020-03-06 19:51:24.000000000 -0800
@@ -1,4 +1,6 @@
\ No newline at end of file
\ No newline at end of file

Running TeamCity 2019.2.2

1 comment
Comment actions Permalink



I was able to replicate this issue in 2020.1 as well and using git. I've created to make sure we fix this. Please watch and vote for it.


Please sign in to leave a comment.