简体   繁体   English

无法下载碎片字符串(从jenkins服务器)以远程调用构建命令

[英]Unable to download crumb string (from jenkins server ) for invoking build commands remotely

I am trying to invoke jenkins build job through remote way and as needed trying to get crumb string from jenkins using wget/curl in following ways, 我试图通过远程方式调用jenkins构建作业,并根据需要尝试通过wget / curl通过以下方式从jenkins获取面包屑字符串,

wget -q --auth-no-challenge --user myjenkinsuser --password mypasswd --output-document - 'http://myjenkins_ip:8082/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)'

curl -s 'http://myjenkinsuser:myjenkinsuser_APIToken@myjenkins_ip:8082/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,":",//crumb)'

Unfortunately both the command neither printing crumb string as a output nor providing any errors; 不幸的是,该命令既没有打印出碎屑字符串作为输出,也没有提供任何错误; it just prompt to the next terminal line. 它只是提示到下一个终端线。

Kindly, tell me what am doing wrong. 请告诉我做错了什么。

Thanks in advance !! 提前致谢 !!

To solve this issue I checked "Prevent Cross Site Request Forgery exploits" in jenkins.com/configureSecurity section and it started working. 为了解决此问题,我在jenkins.com/configureSecurity部分中选中了“防止跨站点请求伪造漏洞利用”,它开始工作。

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM