在jenkins管道中尝试http请求循环

问题描述

我正在尝试在Jenkins管道中完成http请求的循环。每当我运行作业时,看起来第一个请求已启动,但未完成,并且在出现以下错误之后,出现以下错误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
            }
        }
    }
}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)