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

File parameter type is not accessible via global params

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • CloudBees CI Managed Controller 2.332.4.1-rolling

      After upgrading Jenkins to version 2.332.4.1

      it turned out that one can't refer to variable representing a form file parameter type using 'params.file_param'.

      For example given parameters:

      properties([
          parameters([
              string(name: 'string_param', description: ''),
              file(name: 'file_param', description: '')
          ])
      ])

      When we try to access it via params:

      params.string_param // it works and returns param value
      params.file_param // is always null
      

      results with null value no matter whether file is attached or not.

      Why it is not working? Is there another way of accessing form parameters?

            Unassigned Unassigned
            irq Irek
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: