Support Declarative Pipeline method to return the file path (similar to tool() and credential() methods)

XMLWordPrintable

      The scripted syntax stepĀ configFileProvider is workable,Ā but it would be nice to directly set env variables in the declarativeĀ environment{} section or in theĀ withEnv() step.Ā 

      environment {
        FOO_CONFIG_FILE = configFile('default-foo-settings')
      }

      and

      withEnv(["FOO_CONFIG_FILE=${configFile 'default-foo-settings'}"]) {
        ...
      }

      Ā 

            Assignee:
            Dominik Bartholdi
            Reporter:
            Justin Georgeson
            Votes:
            3 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: