We have a pipeline which in Test stage executes a lot of new jobs by using build step (we cannot move the jobs logic into this pipeline due to JENKINS-52391 - we don't want to rebuild 120 jobs because 1 has randomly failed):
Unfortunately, very rarely we see the following entries in logs:
It of course breaks the build because parameters are missing. This is how generic-test-junit looks after I clicked Build with Parameters:
In most cases it looks correct:
But sometimes it is broken:
The generic-junit-test job is generated by Job DSL plugin:
This is the definition of generic-junit-test job (jobs/genericTestJunit.jenkinsfile):
(I know the code is not very pretty (rsync etc.) - we are migrating very old Jenkins to newer technologies ).
At this moment we are forced to use this flag -Dhudson.model.ParametersAction.keepUndefinedParameters=true.