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

envinject overrides some variables

    Details

    • Similar Issues:

      Description

      Steps to reproduce:

      1. Set an environment variable in global configuration for example GIT_URL=https://some/url/$PROJECT

      2. Set parameter of PROJECT=netvirt for example
      3. Create a job that calls "inject" setting a different parameter for example "VAR=123" and then in a shell step immediately after "echo $GIT_URL".

      4. Run job

      Issue:

      GIT_URL is overrided by inject to be a literal string of '$GIT_URL/netvirt/netvirt/netvirt/netvirt'

      Expected result:

      The inject plugin should not be overriding existing variables that are not passed in during the inject call.

        Attachments

          Activity

          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Somebody needs to verify that, but probably it's not an EnvInject regression.
          Maybe the core it self consults with other vars when injecting environment

          Show
          oleg_nenashev Oleg Nenashev added a comment - Somebody needs to verify that, but probably it's not an EnvInject regression. Maybe the core it self consults with other vars when injecting environment
          Hide
          oleg_nenashev Oleg Nenashev added a comment -

          Unfortunately I will not have time to work on EnvInject issues for a while. I decided to unassign all issues so that somebody can take them and finalize.

          Context: The plugin has been waiting for adoption for ~2 years. During all this time I was trying to keep this plugin afloat by reviewing the incoming pull requests, fixing defects and keeping the codebase up to date to simplify the handover. But I have not been using this plugin on my own so that such maintenance was a bit lame. I invite all active users to contribute to the plugin by taking ownership of this plugin and of EnvInject API. I am happy to provide any required knowledge transfers and do some assistance during the first months of maintenance

          Show
          oleg_nenashev Oleg Nenashev added a comment - Unfortunately I will not have time to work on EnvInject issues for a while. I decided to unassign all issues so that somebody can take them and finalize. Context: The plugin has been waiting for adoption for ~2 years. During all this time I was trying to keep this plugin afloat by reviewing the incoming pull requests, fixing defects and keeping the codebase up to date to simplify the handover. But I have not been using this plugin on my own so that such maintenance was a bit lame. I invite all active users to contribute to the plugin by taking ownership of this plugin and of EnvInject API. I am happy to provide any required knowledge transfers and do some assistance during the first months of maintenance

            People

            • Assignee:
              Unassigned
              Reporter:
              zxiiro Thanh Ha
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: