-
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
-
[JENKINS-36566] If password have some characters it is not mask
Component/s | New: credentials-binding-plugin [ 18129 ] | |
Component/s | Original: credentials-plugin [ 16523 ] |
Assignee | Original: Stephen Connolly [ stephenconnolly ] | New: Jesse Glick [ jglick ] |
Workflow | Original: JNJira [ 173279 ] | New: JNJira + In-Review [ 185039 ] |
Description |
Original:
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 {code:java} stage 'test' node(){ withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'ID-NOT-MASK', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME']]) { sh 'echo $USERNAME $PASSWORD' } } {code} # Run the job and you will see the password on console output |
New:
If a password have some especial characters it is nor mask Steps to reproduce # create a credential with password {code:none} \!|"@·#$%&¬/()≠=?¿'`+*´¨{.,;:-_<>}ªº {code} and ID {{ID-NOT-MASK}} # Create a Pipeline Job with this Pipeline Script {code:java} stage 'test' node(){ withCredentials([[$class: 'UsernamePasswordMultiBinding', credentialsId: 'ID-NOT-MASK', passwordVariable: 'PASSWORD', usernameVariable: 'USERNAME']]) { sh 'echo $USERNAME $PASSWORD' } } {code} # Run the job and you will see the password on console output |
Link |
New:
This issue relates to |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |