Re: How to identify exactly where exception occurred in Jenkins pipeline?

2020-08-02 Thread Ramanathan Muthaiah
> > But with Jenkins build output console, it does not show the line number > where the exception has occurred. > > In this case, based on method name ie `trim()` from log, I check wherever > `trim()` method is used. But as I've used it at multiple places in same > method, it becomes difficult

How to identify exactly where exception occurred in Jenkins pipeline?

2020-07-30 Thread Gajanan Mahajan
In Jenkins pipeline build, sometimes I've seen null pointer or other exceptions like - java.lang.NullPointerException: Cannot invoke method trim() on null object Generally if we run Java program through IDE or command line, if an exception occurs we see at which line number the exception