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

EnvJect unsets empty string properties returned in maps

    Details

    • Type: Bug
    • Status: Reopened (View Workflow)
    • Priority: Blocker
    • Resolution: Unresolved
    • Component/s: envinject-plugin
    • Labels:
      None
    • Environment:
      1.69, 1.92.1
    • Similar Issues:

      Description

      EnvJect unsets empty and whitespace properties

      Example
      return ["LABEL":" ",ANOTHER_LABEL:""]

      [EnvInject] - Unset unresolved 'ANOTHER_LABEL' variable.
      [EnvInject] - Unset unresolved 'LABEL' variable.

      It appears that the fix for JENKINS-14930 caused the problem.

      Unsetting blank variables should be optional.

        Attachments

          Issue Links

            Activity

            jmaxwell Jeff Maxwell created issue -
            jmaxwell Jeff Maxwell made changes -
            Field Original Value New Value
            Description EnvJect unsets empty and whitespace properties

            Example
            return ["LABEL":" ",ANOTHER_LABEL:""]

            [EnvInject] - Unset unresolved 'ANOTHER_LABEL' variable.
            [EnvInject] - Unset unresolved 'LABEL' variable.
            EnvJect unsets empty and whitespace properties

            Example
            return ["LABEL":" ",ANOTHER_LABEL:""]

            [EnvInject] - Unset unresolved 'ANOTHER_LABEL' variable.
            [EnvInject] - Unset unresolved 'LABEL' variable.

            It appears that the fix for JENKINS-14930 caused the problem.

            Unsetting blank variables should be optional.
            gbois Gregory Boissinot made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            gbois Gregory Boissinot made changes -
            Status In Progress [ 3 ] Resolved [ 5 ]
            Resolution Fixed [ 1 ]
            jbochenski Jakub Bochenski made changes -
            Resolution Fixed [ 1 ]
            Status Resolved [ 5 ] Reopened [ 4 ]
            jbochenski Jakub Bochenski made changes -
            Environment 1.69 1.69, 1.92.1
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 145866 ] JNJira + In-Review [ 186079 ]
            pjdarton pjdarton made changes -
            Link This issue relates to JENKINS-24283 [ JENKINS-24283 ]

              People

              • Assignee:
                gbois Gregory Boissinot
                Reporter:
                jmaxwell Jeff Maxwell
              • Votes:
                6 Vote for this issue
                Watchers:
                15 Start watching this issue

                Dates

                • Created:
                  Updated: