我已阅读this将问题上传到jenkins服务器的问题。我使用了以下命令
curl -X POST --user mohammed.s:56e253b01ae6928adc78aa8a21573884 http://localhost:8080/job/tarball_build/build --form attachedfile=@/home/shafeeque/test --form json='{"parameter": [{"name":"abc", "file":"attachedfile"}]}'
但是我收到以下错误。我在互联网上搜索了很多,但没有一个回答对我有用。任何人都可以帮我指出是否有任何错误?
我得到的错误是
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>Error 403 No valid crumb was included in the request</title>
</head>
<body><h2>HTTP ERROR 403</h2>
<p>Problem accessing /job/tarball_build/build. Reason:
<pre> No valid crumb was included in the request</pre></p><hr><i><small>Powered by Jetty://</small></i><hr/>
</body>
</html>