catch exception on jenkins