Azure credential failure

Within the last several days, Azure DevOps incoming sync has been failing on the def credentials line. It is believed that getCredentials() method has been deprecated. The full replacement solution is not clear to me.

public R http(String method, String path, java.util.Map<String, List> queryParams, String body, java.util.Map<String, List> headers, Closure transformResponseFn) {
def credentials = await(httpClient.azureClient.getCredentials())

Solution found! The error resolves with the following edits.

Screenshot 2025-07-11 174419

Nice one!

Thanks for sharing the solution as well.