I have a Jenkins job to build packages for different OSs (see attached). I
recently added the build_ubuntu22 function and relevant cases for it to the
job. Before adding the function the job completed successfully without any
problems using the environment variables. After adding the function, when the
job is called I get the following error:
groovy.lang.MissingPropertyException: No such property: PODMAN_CMD for class: groovy.lang.Binding
Is this due to a bug in the pipeline or a plugin? I noticed JENKINS-53421, but
we did not upgrade any of our Jenkins plugins so I don't think this is the same
issue. Also, if I select one of the branches that does not use the PODMAN_CMD
variable then the job completes successfully. If this is due to an error in my
job pipeline script instead, please let me know how I might fix it.
We have 2 instances of Jenkins that run this job, an older on and an up-to-date
one. Console logs from both versions are attached. The older Jenkins instance
is Version 2.346.3. The up-to-date Jenkins instance is Version 2.440.1.