Have you ever needed to make some HTTP requests in your Jenkins pipeline? How will you do that?
The first that comes to mind is to use the simple CURL command. It’s a powerful tool, and it will be fine for simple cases like the usual GET request. But what about more complicated issues? What if you need to execute POST with a huge JSON body and many headers? CURL command will be obscure and not maintainable. Also, it will be hell with escaping quotes and special symbols to make it works in the pipeline.