jenkins - 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(防止跨站点请求伪造漏洞利用)。
我错过了什么吗?有人可以帮我解决这个问题。
解决方案
由于 Jenkins 升级对 CSRF 验证做了一些改变。
https://www.jenkins.io/doc/upgrade-guide/2.176/#SECURITY-626
安装一个名为 Strict Crumb Issuer Plugin 的插件并像这样设置对我有用
推荐阅读
- javascript - 在nativescript-vue的ListView中获取复选框索引
- java - 在 Spring Batch 中使用 StaxEventItemReader 时,有没有办法指定字符编码?
- javascript - 如何使 JavaScript 中字节有效负载的 Base64 HmacSHA256 签名等效于 Java?
- azure - 如何配置 Azure APIM 以根据用户路由到不同的后端?
- php - 如何在其他 wordpress 网站上显示自定义 wordpress 提要?
- javascript - 在您的 Google Cloud 函数中获取添加或删除到 Firestore 数组的值
- python - 将不一致的格式转换为时间(小时,分钟)为更清晰的一致格式
- react-native - 使用输入选项和更新 cardItem 文本字段的 React Native 打开模态
- ios - 如何让每个数组索引都有一个struct实例
- java - 如何使用列表映射过滤流值?