Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
jenkins_job module: fix for python3 #54958
On python3 the jenkins_job fails to reconfigure the respective job due to a parsing issue within lxml when the configuration file contains an encoding declaration:
Additionally, after removing encoding declaration it fails inside python-jenkins with:
How it works:
I've tested this solution both on python2 and python3 on configs with and without encoding declaration and it seems to work in all cases.