I'm attempting to complete a loop of http requests in a Jenkins pipeline. Any time I run the job, it looks like the first request is initiated but it doesn't complete and I get the below error after: java.io.NotSerializableException: groovy.json.internal.LazyMap
stage('Test') {
steps {
script {
def testCases = new JsonSlurper().parseText(env.JIRA_TEST_CASES)
for (issue in testCases.issues) {
httpRequest contentType: 'APPLICATION_JSON', httpMode: 'POST', url: url, requestBody: createBody(issue.key), authentication: auth, consoleLogResponseBody: true
}
}
}
}