I am trying to invoke this code in jenkins
rem copy installation to output folder
set src="C:\code\EPMD\Installer\inno setup\Output"
set dst="c:/test_installs/Calibration/%version_name%"
call robocopy %src% %dst% /MIR /E /is /it
The code runs and works, creating a new file in the destination folder.
This makes robocopy return 1, as the documentation states.
Then, it calls exit 1
internally, and jenkins thinks the build has failed.
How can I "catch" that return value and not fail the build?