httpRequest does not return result in parameters's Groovy script

10 views
Skip to first unread message

Gajanan Mahajan

unread,
Jun 15, 2020, 6:44:43 AM6/15/20
to Jenkins Users
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
Reply all
Reply to author
Forward
0 new messages