首页 > 解决方案 > Jenkins 远程参数化:ExceedRetryLimitException

问题描述

我正在尝试从我的本地 Jenkins 服务器触发远程作业。我为参数化远程触发器完成了所有必需的配置,例如远程主机设置、本地服务器作业的作业信息。但是当我触发工作时,我收到以下错误:

Triggering remote job now.
CSRF protection is disabled on the remote server.
ERROR: Remote build failed with 'ExceedRetryLimitException' for the following reason: 'Max number of connection retries have been exeeded.'. But the build will continue.
ERROR: Unexpected status: status=NOT_TRIGGERED. The queue id was not found.
Skipped archiving because build is not successful
Extended Email Publisher is currently disabled in project settings
Finished: FAILURE

我检查了完全没问题的凭据,并尝试启用和禁用 CSRF(防止跨站点请求伪造漏洞利用)。

我错过了什么吗?有人可以帮我解决这个问题。

标签: jenkinsjenkins-pipeline

解决方案


由于 Jenkins 升级对 CSRF 验证做了一些改变。

https://www.jenkins.io/doc/upgrade-guide/2.176/#SECURITY-626

安装一个名为 Strict Crumb Issuer Plugin 的插件并像这样设置对我有用

在此处输入图像描述


推荐阅读