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

Inject environment variables with property file not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      Jenkins ver. 1.421
      Windows XP Prof. (SP3)
    • Similar Issues:

      Description

      • Using the Build Step: "Inject environment variables"
        with following parameters:
        "Properties File Path:" E:\test\my_env.properties
        "Properties Content:" LIBS_ALL=x
      • Checking result with: "Execute Windows batch command"
        Command: set

      Result:

      • Correct setting of environment variables set with "Properties Content" (e.g. LIBS_ALL)
      • No environment variables set by using "Properties File Path"

      Relating Console output:
      ...
      [EnvInject] - Injecting as environment variables the properties file path 'E: / test / my_env.properties'
      [EnvInject] - Injecting as environment variables the properties content
      'LIBS_ALL=x'

      ...
      ...\workspace>set
      ...
      LIBS_ALL=x
      ...

      Note:
      Please consider the spaces in the path of the console output ('E: / test / my_env.properties')!

      The same "my_env.properties" file was tested using "Jenkins Environment File Plugin"

      • Build Triggers: Set environment variables through a file
        -> Using the "Jenkins Environment File Plugin", the environment variables are set correctly!

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Gregory Boissinot
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesVariablesRetriever.java
          http://jenkins-ci.org/commit/envinject-plugin/5d6be1fc18149f814eec82f756323bb3a1eb0747
          Log:
          Fixed JENKINS-10894

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Gregory Boissinot Path: src/main/java/org/jenkinsci/plugins/envinject/service/PropertiesVariablesRetriever.java http://jenkins-ci.org/commit/envinject-plugin/5d6be1fc18149f814eec82f756323bb3a1eb0747 Log: Fixed JENKINS-10894
          Hide
          gbois Gregory Boissinot added a comment -

          It should be fixed in EnvInject 0.11?
          Waiting the new update center file, you can download the plugin at the url http://maven.hudson-labs.org:8081/content/repositories/releases/org/jenkins-ci/plugins/envinject/0.11/

          Show
          gbois Gregory Boissinot added a comment - It should be fixed in EnvInject 0.11? Waiting the new update center file, you can download the plugin at the url http://maven.hudson-labs.org:8081/content/repositories/releases/org/jenkins-ci/plugins/envinject/0.11/

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              nify Nico Falk
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: