python-jenkins-developers team mailing list archive
-
python-jenkins-developers team
-
Mailing list archive
-
Message #00473
[Bug 1687551] Re: "HTTP Error 414: Request-URI Too Long" while submitting a build
I have faced with the same problem. It's because python-jenkins uses GET
request.
You can use jenkinsapi library for your code, it uses POST request.
--
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