If you are interested in an alternative tool, we use python-jenkins (https://pypi.python.org/pypi/python-jenkins) to add jobs to jenkins and that does work with the "Prevent Cross Site Request Forgery exploits" feature.
On Tuesday, August 4, 2015 at 3:06:16 PM UTC-7, James Nord wrote: > > the crumbIssuer is only available if you have enabled "Prevent Cross Site > Request Forgery exploits" in the Jenkins configuration. > If it is failing as that is not enabled it is a bug in the tool - it > should check if it is enabled and not use a crumb if not enabled (ie handle > the 404 and continue without a crumb). > as a workaround you can enabled the option - but if you have any other API > integrations beware they may start failing! > (generally this option is one you should have on IMHO) > > /James > > > On Sunday, 19 July 2015 15:56:44 UTC+1, Igal Harel wrote: >> >> Hi, >> >> I'm trying to add a new job using >> https://github.com/RisingOak/jenkins-client (Java client), and it fails >> >> In the log I see the following error >> >> 17:08:00.184 [main] DEBUG org.apache.http.wire - << "<body><h2>HTTP >> ERROR 404</h2>[\n]" >> 17:08:00.184 [main] DEBUG org.apache.http.wire - << "<p>Problem >> accessing /crumbIssuer/api/json. Reason:[\n]" >> 17:08:00.184 [main] DEBUG org.apache.http.wire - << "<pre> Not >> Found</pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> >> [\n]" >> >> Any idea what can it be? >> >> >> Thanks >> Igal >> > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-users+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5f749f33-fc1a-40ab-bb73-161546d9f3ee%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.