Status: Open (View Workflow)
Environment:Jenkins LTS 2.138 deployed from official Docker image
We use pipeline jobs retrieved via Git SCM. There are simplified version of how they look like:
Sometimes Jenkins can 'lose' parameters passed from upstream build in my configuration. About 1 time per 5 successful executions downstream build will fail with an error like this:
java.lang.NullPointerException: Cannot invoke method contains() on null object
However, in build.xml file for that build on Jenkins master all parameters' values are in place, and I can click 'Rebuild' and build will pass. But 'Parameters' page for the failed build is empty.
In Jenkins log there are many entries like this:
We've "fixed" this by replacing env.param_name with params.param_name in our pipelines and shared library, but env approach used to work before (I can't be really sure whether upgrade broke it or we somehow).
Is there's a way I can investigate further? Please let me know if you need additional information.