pycontribs / jenkinsapi

A Python API for accessing resources and configuring Hudson & Jenkins continuous-integration servers
http://pypi.python.org/pypi/jenkinsapi
MIT License
859 stars 485 forks source link

Crumbs functionality is broken against > LTS 2.176 #724

Closed zzzuzik closed 5 years ago

zzzuzik commented 5 years ago

CSRF was tighten up: https://jenkins.io/doc/upgrade-guide/2.176/

see as well: https://github.com/ansible/ansible/issues/61672

wy-z commented 5 years ago

https://github.com/pycontribs/jenkinsapi/blob/76d64d166d2c7c66e8cf87578d4f3113ca1bc1c0/jenkinsapi/jenkins.py#L652 Call use_auth_cookie() after Jenkins initialization.

zzzuzik commented 5 years ago

@wy-z thanks, but this doesn’t work with HTTPS

zzzuzik commented 5 years ago

verified; the issue is resolved in the 0.3.10 release. thank you @lechat