Hi Jenkins gurus,
I am working on creating a Pipeline Global Library to extract some common code from different teams's Jenkins files to this library.
In my Library, when some condition is true, I want to terminate the current Jenkins build without executing the rest of the build (build succeed). I know in Jenkins file, a 'return' is good enough. But now I always check the condition in a method of the library, how can I terminate the build there?
Thanks a lot!