Hi, I'm trying to use groovy code and inside there on some part I'm trying to find a way to stop the ONGOING build through method(preferred) or API. I tried looking inside the build object and also the other ones, also tried going inside the source code but no luck.
How can I stop an ongoing build through a method/api?