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

Properties File Path handles ${VARIABLES} in filename inconsistently

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • envinject-plugin
    • None

      Moved from https://github.com/jenkinsci/envinject-plugin/issues/23

       

      I want to load a properties file such as /opt/jenkins/${GIT_COMMIT}.properties.
      
      If I define Properties File Path in "Prepare an environment for the run" then it is interpreted as a literal (which is unhelpful); however Properties File Path in "Inject environment variables" (i.e. as a build step) is interpreted correctly (i.e. the filename is dynamic).
      
      Loading the properties file as a build step is a partial workaround, except that options such as "Load script and properties files from the master" are not presented at this stage.
      
      It would be helpful if both "Properties File Path" fields interpreted variables in the filename.

      Full discussion is attached as PDF

            Unassigned Unassigned
            oleg_nenashev Oleg Nenashev
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: