In the curl command give -o so that you get response back. You can also specify output format by using —output-format attribute.
But I prefer http request plugin to make rest calls from pipeline script. It is very easy to use. https://jenkins.io/doc/pipeline/steps/http_request/ -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e87a2b82-f400-4872-bb8a-096807126a14%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.