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

Variable with consecutive dollar characters not displayed as expected: One doller char is dropped

XMLWordPrintable

      When trying to mask passwords with 2 or more dollar ($) characters together, the password is not masked
      e.g. pa$$word is not masked

      Also, the console log shows this with only one dollar character
      e.g. if you add a window batch command:

      echo %PASSWORD%

      with pa$$word as %PASSWORD% the console will show:

      D:\jenkins\workspace\hp_test_job>echo pa$word
      pa$word

      notice only one dollar in output ... is $ an escape character?

            danielpetisme Daniel Petisme
            hiren Hiren Patel
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: