Jenkins setup: 2.492.3 21 lts
Whenever I try to save a job configuration change containing any environment variable in the ${}
format, configSubmit
returns a 502 error, and I am redirected to a page stating that the page does not exist or that I do not have permission to view it. This happens even with an administrative profile.
Already tried updating all my plugins but got same results.
Do you have access to the jenkins logs on the controller system? It might hold some information as to what is actually going wrong.
There were no initial logs for the configSubmit
endpoint. However, re-issuing the same POST request generated this warning:
2025-07-01 12:12:12.000+0000 [id=111111111] WARNING o.e.j.e.n.ContextHandler$APIContext#log Error while serving https://<jenkins_url>/job/x/job/y/configSubmit/
2025-07-01 12:12:12.001+0000 [id=111111111] WARNING h.i.i.InstallUncaughtExceptionHandler#handleException
But I think it was only logged because of an error when we tried to replicate the request.
This leads us to suspect that the problem is occurring somewhere on the way to the server, such as in a proxy or firewall.
I’ve found that the issue is external to Jenkins.