Recently, I noticed that the robocopy and Jenkins were not playing nice. My jobs kept failing even though robocopy was succeeding.
Eventually I figured out that Jenkins was expecting an error code of 0 to be returned and robocopy was returning error code 1 (as a success).
The following screenshot explains everything. You will also find . . . → Read More: robocopy errorlevel causes a failed jenkins build