If password have some characters it is not mask

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Minor
    • None
    • Environment:
      Jenkins ver. 1.651.3.1
      Credentials 2.1.4
      Pipeline 2.1

      If a password have some especial characters it is nor mask

      Steps to reproduce

      1. create a credential with password
        \!|"@·#$%&¬/()≠=?¿'`+*´¨{.,;:-_<>}ªº
        

        and ID ID-NOT-MASK

      2. Create a Pipeline Job with this Pipeline Script
        stage 'test'
        
        node(){
            withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'ID-NOT-MASK', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME']]) {
                sh 'echo $USERNAME $PASSWORD'
            }
        }
        
      3. Run the job and you will see the password on console output

            Assignee:
            Jesse Glick
            Reporter:
            Ivan Fernandez Calvo
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: