使用Jenkins API创建Job是出现了No valid crumb was included in the request的错误提示,memo一下原因和对应方法。
现象
liumiaocn:jenkins liumiao$ curl -X POST -u root:liumiaocn -H "Content-Type:application/xml" -d "@demo/freestyle/config.xml" http://localhost:32002/createItem?name=free_style_job
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title