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

input step cannot access environment blocks

XMLWordPrintable

      The input step in declarative pipeline (JENKINS-48379) cannot access the environment blocks. Thus, dynamic data (e.g. version number) cannot be used in the input dialog. Also defining options in the input and checking the result requires redundant values, because they cannot be reused.

      • Access to $JOB_NAME and ${env.JOB_NAME} is working.
      • Access to $myVar is not working. It leads to a "no such property" exception. It doesn't matter if the variable is declared in the global or stage-local environment block.
      • Access to ${env.myVar} is not working. The value is null. It doesn't matter if the variable is declared in the global or stage-local environment block.

            Unassigned Unassigned
            aklemp Andreas Klemp
            Votes:
            5 Vote for this issue
            Watchers:
            12 Start watching this issue

              Created:
              Updated: