Hi All,
We are trying to prepare to upgrade to v10.x for Jira SM. In doing so we're validating our current Groovy scripts.
We have several that make a call to an internal HTTP site (not Atlassian) that requires NTLM Authentication.
We had previously used the HTTPBuilder and RESTClient from the groovyx.net.http, however this functionality is no longer available. Support document suggest to use native Groovy calls.
While I can do a call such as
def urlobj = new URL("https://mywebsite.com.au/").openConnection()
def getRC = urlobj.getResponseCode()
Obviously the returned is 401 Unauthorized.
While I've seen options for .setRequestProperty or using a BufferReader, I'm quite unclear on how or where appropriate credentials are supplied.