[TIMOB-14762] Added exit code of 1 when a build error occurs.
Merge pull request #4561 from cb1kenobi/timob-14762_3_1_X

[TIMOB-14762] Added exit code of 1 when a build error occurs.