python-jenkins-developers team mailing list archive
-
python-jenkins-developers team
-
Mailing list archive
-
Message #00612
[Bug 1687551] Re: "HTTP Error 414: Request-URI Too Long" while submitting a build
I get the same problem.
The jenkinsapi package indeed overcomes this issue, however IMO is less robust and moving to it in my case raised some other bugs that needed to be handled.
I could not get the jenkins_open method to work as @stellalie posted, it returns:
HTTPError: 400 Client Error: Nothing is submitted for url
Any idea?
--
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
References