• Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • Credentials Binding v1.2, Credentials v1.18, Jenkins v1.580.1

      A username-password combo is bound to CREDENTIALS, where the password contains two or more consecutive dollar signs.

      Those multiple dollar signs are returned as a single dollar sign in the $CREDENTIALS variable.

          [JENKINS-27040] Bound variables strip multiple dollar signs

          Nathaniel Eliot created issue -

          Jesse Glick added a comment -

          Hmm, might be difficult to solve since Jenkins has a lot of complicated code for expanding variables in other variables. Possibly an issue in core rather than this plugin.

          Do you have a minimal reproducible test case?

          Jesse Glick added a comment - Hmm, might be difficult to solve since Jenkins has a lot of complicated code for expanding variables in other variables. Possibly an issue in core rather than this plugin. Do you have a minimal reproducible test case?
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 161232 ] New: JNJira + In-Review [ 180621 ]

          Jesse Glick added a comment -

          Apparently not.

          Jesse Glick added a comment - Apparently not.
          Jesse Glick made changes -
          Resolution New: Incomplete [ 4 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]

          mephi42 added a comment -

          The issue is still present in Jenkins 2.46.2 and Credentials Binding Plugin 1.11.

          I was able to create a minimal repro: https://github.com/mephi42/JENKINS-27040

          mephi42 added a comment - The issue is still present in Jenkins 2.46.2 and Credentials Binding Plugin 1.11. I was able to create a minimal repro: https://github.com/mephi42/JENKINS-27040
          mephi42 made changes -
          Resolution Original: Incomplete [ 4 ]
          Status Original: Resolved [ 5 ] New: Reopened [ 4 ]
          mephi42 made changes -
          Attachment New: jenkins-27040-test.patch [ 37618 ]

          mephi42 added a comment - - edited

          I was also able to reproduce this in the unit test environment: jenkins-27040-test.patch

          org.junit.ComparisonFailure:
          Expected :bob/s$$cr$$t
          Actual   :bob/s$cr$t

          mephi42 added a comment - - edited I was also able to reproduce this in the unit test environment: jenkins-27040-test.patch org.junit.ComparisonFailure: E xpected :bob/s$$cr$$t Actual   :bob/s$cr$t

          Jesse Glick added a comment -

          For freestyle projects supposedly this is as designed. (Code in Launcher.) Does not happen in Pipeline.

          Jesse Glick added a comment - For freestyle projects supposedly this is as designed. (Code in Launcher .) Does not happen in Pipeline.
          Jesse Glick made changes -
          Resolution New: Won't Fix [ 2 ]
          Status Original: Reopened [ 4 ] New: Resolved [ 5 ]

            jglick Jesse Glick
            temujin9 Nathaniel Eliot
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: