Pipeline GET Call error
Summary:
Pipeline POST is successful but trying to get the status of pipeline jobs and says error occurred while processing this page. The error appears same for any 'items' in the pipeline
Content (please ensure you mask any confidential information):
HttpResponse<String> jsonResponse1 = operation.application.getConnection("CONNNAME").get('/aif/rest/V1/pipeline?pipelineName="PIPELINENAME").header("Content-Type","application/json").asString();
def jsonMap = (Map) new JsonSlurper().parseText(jsonResponse1.body)
def jobName = ((Map)((List)jsonMap.get("jobs"))[0]).get("jobName")
FYI: It works only till main response and for others it prints "null" even if Key value pairs are present.
def jn = jsonMap.get("response") works but it is not working for the items in this. Example: jobName is printed null when jsonMap.get("jobName")