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

AbstractBuild.getEnvironment does not set EnvVars.platform and breaks EnvVars.override

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • core

      Hi,
      Since 1.472, calling AbstractBuild.getEnvironment(TaskListener) returns a EnvVars with EnvVars.platform unset.
      Since EnvVars.override uses EnvVars.platform (and default to UNIX style PATH separator if EnvVars.platform is null), it does not work anymore for Windows slaves.
      Thanks!

          [JENKINS-14807] AbstractBuild.getEnvironment does not set EnvVars.platform and breaks EnvVars.override

          Olivier Mansion created issue -
          Daniel Beck made changes -
          Link New: This issue is related to JENKINS-16176 [ JENKINS-16176 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 145508 ] New: JNJira + In-Review [ 176369 ]
          Oleg Nenashev made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Oleg Nenashev made changes -
          Labels New: lts-candidate
          Oliver Gondža made changes -
          Labels Original: lts-candidate New: 2.60.3-fixed
          Nikolas Falco made changes -
          Link New: This issue is duplicated by JENKINS-49673 [ JENKINS-49673 ]

            Unassigned Unassigned
            mansion Olivier Mansion
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: