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

envinject overrides some variables

    XMLWordPrintable

    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

          zxiiro Thanh Ha created issue -
          oleg_nenashev Oleg Nenashev made changes -
          Field Original Value New Value
          Component/s core [ 15593 ]
          oleg_nenashev Oleg Nenashev made changes -
          Assignee Oleg Nenashev [ oleg_nenashev ]

            People

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

              Dates

              Created:
              Updated: