一、问题描述(Problem Description):
在jenkins中创建新任务时候选择“拷贝已存在任务”,点击OK,跳转到下一步时候弹出如下错误信息:"No valid crumb was included in the request"
jenkins new job -> copy existing job -> click OK -> "No valid crumb was included in the request"
二、运行环境(Environment):
apache + jboss-as-7.1.1.Final,Windows XP SP3,jdk 1.6.0_33
三、错误原因(Reason):
jenkins在http请求头部中放置了一个名为.crumb的token。在使用了反向代理,并且在jenkins设置中勾选了“防止跨站点请求伪造(Prevent Cross Site Request Forgery exploits)”之后此token会被转发服务器apache/nginx认为是不合法头部而去掉。导致跳转失败。
The problem is that jenkins stores its' csrf token in a http header called '.crumb', AFAIK headers must only contain alphanumerics and dashes, and apache/nginx will remove invalid headers from the request (unless configured not to).
四、解决方案(Solution):
1.在apache/nginx中设置ignore_invalid_headers,或者:
2.在jenkins全局安全设置中取消勾选“防止跨站点请求伪造(Prevent Cross Site Request Forgery exploits)”。
1.Set ignore_invalid_headers in your apache/nginx server, or:
2.Uncheck "Prevent Cross Site Request Forgery exploits" in jenkins global security settings.
【参考资料(References)】
https://issues.jenkins-ci.org/browse/JENKINS-12875
http://en.wikipedia.org/wiki/Cross-site_request_forgery
http://www.cnblogs.com/hyddd/archive/2009/04/09/1432744.html
相关推荐
Design, implement, and execute continuous delivery pipelines with a level of flexibility, control, and ease of maintenance that was not possible with Jenkins before. With this practical book, build ...
Jenkins插件:Post-Build Script Plug-in 最稳定的版本
jenkins插件:publish-over-ssh
Jenkins插件:Publish Over SSH; 版本:1.22; 使用:直接放置 /jenkins_home/plugins 目录下,重启jenkins,即可在插件中心找到 Publish Over SSH 插件;
继:自动化测试框架【windows系统】:Jmeter+Ant+Jenkins Jenkins在windows环境下的下载与安装 下面,添加python项目时的注意事项: 步骤一:安装好Jenkins后,进入首页,点击新建项目//进入项目名称、风格选择的...
安装jenkins时缺少这个小组件,在别处下载了一个,发现这里没有,传一个上来给有需要的人。cloudbees-folder.hpi
With this practical book, build administrators, developers, testers, and other professionals will learn how the features in Jenkins 2 let you define pipelines as code, leverage integration with other...
jenkins+jdk jenkins+jdk jenkins+jdk jenkins+jdk jenkins+jdkjenkins+jdk
test: echo \Error: no test specified\ && exit 1, start: node ./src/koa.js, build: webpack --config ./build/webpack.config.js }, 配置好了之后,运行 $ npm run build 结果报错提示: 发现
What You Will Learn Discover Jenkins Blue Ocean and how to use it Create elegant pipelines using the visual pipeline editor Work with the declarative pipeline syntax Use tools that help you write ...
Jenkins The Definitive Guide 高清原装新版 Devops不要错过!
内容概要:由于Jenkins版本和插件更替较快,当我们下载插件时,提示我们需要升级Jenkins版本,而又不想对Jenkins版本进行升级,所以就导致部分插件无法安装,当然我们也可以去官网下载对应版本,但是插件之间的项目...
jenkins-the-definitive-guide,jenkins-the-definitive-guide,jenkins-the-definitive-guide,jenkins-the-definitive-guide
CentOS下jenkins安装部署,新手的绝好教程
设计、实现和执行连续交付管道,在一定程度上灵活、控制和易于维护,这是Jenkins以前不可能做到的。通过这本实用的书,构建管理员、开发人员、测试人员和其他专业人员将了解Jenkins 2中的特性如何将管道定义为代码,...
JenkinsPipeline:软件测试培训项目