"HTTP Error 414: Request-URI Too Long" while submitting a build
Bug #1687551 reported by
Gan Huang
This bug affects 5 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Python Jenkins |
In Progress
|
Undecided
|
liuxun |
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_
"""
python-
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 post a comment you must log in.
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.