I have the same problem, I need to send POST request to jenkins with the data in its body. I ended up simply using the undocumented methods `jenkins_open` and `build_job_url` in the mean time: from six.moves.urllib.request import Request
``` import urllib.parse import json import jenkins server = jenkins.Jenkins(self.server_url) url = server.build_job_url(job_name) data = str.encode(urllib.parse.urlencode({'json': json.dumps(params)})) server.jenkins_open(Request(url, method='POST', data=data)) ``` -- You received this bug notification because you are a member of Python Jenkins Developers, which is subscribed to Python Jenkins. https://bugs.launchpad.net/bugs/1687551 Title: "HTTP Error 414: Request-URI Too Long" while submitting a build Status in Python Jenkins: New Bug description: The Jenkins job I wanted to trigger was composed with multi parameters. One is a multi-lines parameters that is too long to exceed the limitation set for the url length in this request. """ self.jek_ins.build_job(self.job_name, self.build_vars, self.user_token) """ python-jenkins-0.4.8-1.el7.noarch How to reproduce: 1. pass a parameter including a very long strings to the jenkins params when calling function build_job Actual Result: HTTP Error 414: Request-URI Too Long Excepted result: Http request for triggering the build succeed even if a long string included. To manage notifications about this bug go to: https://bugs.launchpad.net/python-jenkins/+bug/1687551/+subscriptions -- Mailing list: https://launchpad.net/~python-jenkins-developers Post to : python-jenkins-developers@lists.launchpad.net Unsubscribe : https://launchpad.net/~python-jenkins-developers More help : https://help.launchpad.net/ListHelp