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

Environment variables on Windows are all lowercase since 2.50

      Since updating to Jenkins 2.50 ANT builds that use environment variables fail on windows slaves because lots of environment variables are now all lowercase.

      Using environment variables in ANT is case sensitive.

      Variables that come from the system are all lowercase (COMPUTERNAME, Path, SystemDrive, SERVICE_ID, ...) and variables that come from Jenkins are as usual (NODE_NAME, BUILD_ID, ...).

      SERVICE_ID is interesting because it is not set on the system, used to be all uppercase is now also all lowercase.

       SSH Slaves are not affected. Windows slaves use Java Web Start and jenkins-slave.exe as a service.

      Researching I found this which may be related:

      https://social.msdn.microsoft.com/Forums/vstudio/en-US/031707fc-b95d-407c-aadf-5dc1bca69c94/system-variables-lower-case-ant-issue?forum=tfsbuild

          [JENKINS-42744] Environment variables on Windows are all lowercase since 2.50

          Ing. Christoph Obexer created issue -
          Oleg Nenashev made changes -
          Component/s New: windows-slave-installer-module [ 21834 ]
          Oleg Nenashev made changes -
          Labels New: winsw

          Oleg Nenashev added a comment -

          Yes, this is the right root cause. Likely it happens due to the change in WinSW

          Oleg Nenashev added a comment - Yes, this is the right root cause. Likely it happens due to the change in WinSW
          Oleg Nenashev made changes -
          Labels Original: winsw New: regression winsw
          Oleg Nenashev made changes -
          Priority Original: Major [ 3 ] New: Critical [ 2 ]
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Oleg Nenashev made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]

          Oleg Nenashev added a comment -

          Created the pull request to WinSW: https://github.com/kohsuke/winsw/pull/202

          Once it gets reviewed and merged, I will update Windows Agent Installer module and the Core

          Oleg Nenashev added a comment - Created the pull request to WinSW: https://github.com/kohsuke/winsw/pull/202 Once it gets reviewed and merged, I will update Windows Agent Installer module and the Core

          Code changed in jenkins
          User: Oleg Nenashev
          Path:
          CHANGELOG.md
          pom.xml
          http://jenkins-ci.org/commit/windows-slave-installer-module/c614cddeac014ec409f326740f1135f85335eed7
          Log:
          JENKINS-42744 - Update WinSW to 2.0.3

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oleg Nenashev Path: CHANGELOG.md pom.xml http://jenkins-ci.org/commit/windows-slave-installer-module/c614cddeac014ec409f326740f1135f85335eed7 Log: JENKINS-42744 - Update WinSW to 2.0.3

            oleg_nenashev Oleg Nenashev
            cobexer Ing. Christoph Obexer
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: