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

Escape characters such as "\" for filepaths are being removed from variables loaded from properties file.

      When triggering another build and loading a properties file, if you have Jenkin's variables with paths in them, the backslashes are removed for the variable.

      Ex:

      "ROOT_PATH=${WORKSPACE}
      Results"

      ROOT_PATH variable will appear with "C:jenkins_agentworkspace\Results"

      and should appear as:

      "C:\jenkins_agent\workspace\Results"

          [JENKINS-19276] Escape characters such as "\" for filepaths are being removed from variables loaded from properties file.

          Michael J. Nohai created issue -
          Michael J. Nohai made changes -
          Description Original: When triggering another build and loading a properties file, if you have variables with paths in them, the backslashes are removed for the variable.

          Ex:

          ROOT_PATH=C:\Windows

          ROOT_PATH variable will appear with C:Windows

          New: When triggering another build and loading a properties file, if you have Jenkin's variables with paths in them, the backslashes are removed for the variable.

          Ex:

          ROOT_PATH=${WORKSPACE}\\Results

          ROOT_PATH variable will appear with "C:jenkins_agentworkspace\Results"

          and should appear as:

          "C:\jenkins_agent\workspace\Results"

          Michael J. Nohai made changes -
          Description Original: When triggering another build and loading a properties file, if you have Jenkin's variables with paths in them, the backslashes are removed for the variable.

          Ex:

          ROOT_PATH=${WORKSPACE}\\Results

          ROOT_PATH variable will appear with "C:jenkins_agentworkspace\Results"

          and should appear as:

          "C:\jenkins_agent\workspace\Results"

          New: When triggering another build and loading a properties file, if you have Jenkin's variables with paths in them, the backslashes are removed for the variable.

          Ex:

          "ROOT_PATH=${WORKSPACE}\\Results"

          ROOT_PATH variable will appear with "C:jenkins_agentworkspace\Results"

          and should appear as:

          "C:\jenkins_agent\workspace\Results"

          Igor Okulist added a comment -

          bump!

          Igor Okulist added a comment - bump!
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150724 ] New: JNJira + In-Review [ 177750 ]

            huybrechts huybrechts
            mjnohai Michael J. Nohai
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: