Hi,

yes you are correct.
Im running my python scripts like this : #python "location/file.py" 
parameter paramerter# in a "Execute Window Batch command"

You can catch error messages in your python script with : sys.exit('Your 
Error Code');
For example :
if re.match(---)
    do this
else:
   sys.exit('Not matching parameter x.')

So in case of an Script failure, it will stop and this "Error Code" will 
published at the Jenkins console
and stop the build.

Clem

Reply via email to