Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-72874

Pipeline fails with "No such property" even when property is defined

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • pipeline
    • Jenkins versions 2.346.3 and 2.440.1

      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.

      external_package_build.jdp

      Jenkins 2.346.3 Instance Console Log.txt

      Jenkins 2.440.1 Instance Console Log.txt

            Unassigned Unassigned
            jboffemmyer Justin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: