-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
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
- create a credential with password
\!|"@·#$%&¬/()≠=?¿'`+*´¨{.,;:-_<>}ªº
and ID ID-NOT-MASK
- 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' } }
- Run the job and you will see the password on console output
- relates to
-
JENKINS-31096 Unicode characters in console logs do not print correctly in Workflow builds
-
- Resolved
-
What is file.encoding on this machine? Pending
JENKINS-31096the Pipeline log may not be in UTF-8 so if some of those characters are not representable they may not be masked.