Now I create a jenkins job with string parameter, and this parameter is come from the upstream job. I just want to know is there any limit about the length of the string parameter, because this info is get from upstream job and it cloud be a very long string
-
Did you ever figure it out? I'm curious about the answer ot this too. – Andi Jay Sep 19 '19 at 19:14
1 Answers
I believe noone really provides an answer since there is no reason to limit the underlying technology. So let's look at that:
Java Java itself seems quite capable of running big strings, but how big is big actually? There is a quite good response in How many characters can a Java String have?
Jetty/Webserver Jenkins is a web application, and as such runs with the embedded jetty or requires to be deployed on some JEE Servlet Container. They, similar as Java do not apply specific limitiations.
HTTP Protocol Regardless of whether you run Jenkins through HTTP or HTTPS, that technology does not limit request or parameter size per specification. On the other hand and mostly for availability and security reasons limits are configured. Depending on the servlet container you use check that configuration. One reason to limit those sizes is to mitigate Slowloris attacks.
Client Browser A lot of browsers have configured limits such as Maximum length of HTTP GET request.
It may seem the strictest limitations come from browser implementations, although I believe as a person responsible for Jenkins operations you want to limit HTTP request and parameter size on the server side. An example of how to do it is in Configure max post size for a external webapp in jetty

- 7,748
- 1
- 16
- 42