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

Environment is not injected for each configuration in a multi-configuration project

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      Jenkins 1.446, EnvInject 1.11
    • Similar Issues:

      Description

      When using a property file with "Prepare an environment for the job" with a multi-configuration project, variables are not injected for each configuration.
      By looking at the console output, the environment is indeed injected at the master job level (the one launching a job for each configuration). however, it doesn't help as it seems that the environment is re-created for each configuration job.

        Attachments

          Activity

          Hide
          frederic_latour Frederic Latour added a comment -

          As a workaround my idea was to inject environment using a Build Step. In that case however, I have no option for getting the properties file from the master which means I would have to maintain a file on each slave.

          Show
          frederic_latour Frederic Latour added a comment - As a workaround my idea was to inject environment using a Build Step. In that case however, I have no option for getting the properties file from the master which means I would have to maintain a file on each slave.
          Hide
          gbois Gregory Boissinot added a comment -

          Could you update your job configuration file in order I propose a fix in your configuration?

          Show
          gbois Gregory Boissinot added a comment - Could you update your job configuration file in order I propose a fix in your configuration?
          Hide
          frederic_latour Frederic Latour added a comment -

          Not sure what you mean exactly.

          Show
          frederic_latour Frederic Latour added a comment - Not sure what you mean exactly.
          Hide
          frederic_latour Frederic Latour added a comment -

          I'm interested in having a possible fix but have a hard time guessing what you mean by asking if I could update my configuration job.
          Mind to explain?

          Show
          frederic_latour Frederic Latour added a comment - I'm interested in having a possible fix but have a hard time guessing what you mean by asking if I could update my configuration job. Mind to explain?
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Florence.Chabanois
          Path:
          src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java
          src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java
          http://jenkins-ci.org/commit/envinject-plugin/2b8dcaa7f3e741746de8adbf3e6c0f204b1617f0
          Log:
          Fix JENKINS-12416

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Florence.Chabanois Path: src/main/java/org/jenkinsci/plugins/envinject/EnvInjectListener.java src/main/java/org/jenkinsci/plugins/envinject/service/EnvInjectVariableGetter.java http://jenkins-ci.org/commit/envinject-plugin/2b8dcaa7f3e741746de8adbf3e6c0f204b1617f0 Log: Fix JENKINS-12416
          Hide
          gbois Gregory Boissinot added a comment -

          It's a misunderstanding.
          I wanted to say : Could you attach your job configuration file (config.xml) and not to update?
          The issue should be fixed in the version 1.14.

          Show
          gbois Gregory Boissinot added a comment - It's a misunderstanding. I wanted to say : Could you attach your job configuration file (config.xml) and not to update? The issue should be fixed in the version 1.14.
          Hide
          frederic_latour Frederic Latour added a comment -

          Thanks a lot Florence and gbois (or maybe this is the same person).

          Show
          frederic_latour Frederic Latour added a comment - Thanks a lot Florence and gbois (or maybe this is the same person).
          Hide
          gbois Gregory Boissinot added a comment -

          It is the same person in this context (due to a git configuration issue)

          Show
          gbois Gregory Boissinot added a comment - It is the same person in this context (due to a git configuration issue)

            People

            • Assignee:
              gbois Gregory Boissinot
              Reporter:
              frederic_latour Frederic Latour
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: