httpRequest does not return result in parameters's Groovy script

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

httpRequest does not return result in parameters's Groovy script

Gajanan Mahajan
If I make following http request in pipeline code it returns result for `response.status`

    def response = httpRequest authentication: '<some-auth>', url: '<some-url>'

However if same code is passed to Groovy script of pipeline parameter, it returns nothing and also no error is seen.

Please help on how I can make it to work in Grooy script of pipeline parameter

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/e8db90c5-1940-4a30-9af8-730be5ffc5e4o%40googlegroups.com.