Defining specific exit success codes
Posted by Yoni Davidson, Last modified by Yoni Davidson on 08 January 2018 03:56 PM
A valid DevTools Solution license is required to use XML Profiles when using IncrediBuild.
Sometimes there is a need to define specific exit codes since certain programs don't always return 0 as a success code and 1 as a failure code.
For Visual Studio Builds
Change the *.ib_profil.xml file to the following:
<?xml version"1.0" encoding"utf-8" standalone"no" ?>
<Tool Filename="My TOOL" SuccessExitCodes="1" />
The "My Tool" can be a custom step that is being executed and will return an exit code equal to 1 when everything is running correctly. The exit code will be equal to 0 if there are problems.
Example for several sucess exit codes (for tools that have various success exit codes):
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
As can be seen the "robocopy success exot codes are defined between the range of 0 to 8.
For XGE Builds
Simply add the profile from above along with the /profile argument added to the end of your build command.