#2902 Make pagure-ci use python-jenkins to work with newer Jenkins
Merged by pingou. Opened by pingou.
update_pagure_ci  into  master

Download 2902.patch

Jenkins now may request the equivalent of a CSRF token, python-jenkins
supports it while the approach we used so far does not.
So start using python-jenkins instead of doing a POST http request that
simply does not work on recent jenkins instances.

Fixes https://pagure.io/pagure/issue/2380

Signed-off-by: Pierre-Yves Chibon pingou@pingoured.fr

Note that this is meant to be merged, but likely we'll just drop that entire piece of code for an equivalent version using celery in 4.0 but I'd like to patch the RPM so we can get this fix sooner as it is required for interacting with ci.centos.org

:thumbsup: Can we put this in staging? I have a couple of jobs I can trigger from there to double check.

Despite what I was saying earlier, I will merge this since it won't conflict with later work.

Thanks for the review @bstinson

I have also hotfixed staging for testing :)

rebased onto 30e2e6b37df8cd32f2f9cd72a2b1af71897abb0e

Pull-Request has been merged by pingou

Metadata