Search This Blog

Sunday, September 17, 2017

[Solved] Jenkins : How to return force windows command exit code 0


Recently, I was facing issue with Jenkins setup while executing some scripts in windows shell command .
          Actually robocopy command does not return 0 always while it returns other than 0 exit codes though it copies successfully.


Used following at the end of script did the trick for me which always forced to return 0 after copy :

exit /b 0

Hope it will help others too.

Cheers,
Kapil 

No comments:

Post a Comment

Thanks for your comment, will revert as soon as we read it.

Popular Posts