-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Minor
-
Component/s: mask-passwords-plugin
-
None
Hi,
Am I missing something or does the Mask Passwords plugin only support single line strings?
stages {
stage('Secret-Masking') {
script {
MASKED_SECRET = 'I_AM_MASKED'
MULTI_LINE_MASKED_SECRET = """I_AM
_NOT_MASKED"""
wrap([$class: 'MaskPasswordsBuildWrapper',
varPasswordPairs: [[password: MASKED_SECRET]]]) {
echo 'MASKED_SECRET: ' + MASKED_SECRET
}
wrap([$class: 'MaskPasswordsBuildWrapper',
varPasswordPairs: [[password: MULTI_LINE_MASKED_SECRET]]]) {
echo 'MULTI_LINE_MASKED_SECRET: ' + MULTI_LINE_MASKED_SECRET
}
}
}
}
Output is:
MASKED_SECRET: ********
MULTI_LINE_MASKED_SECRET: I_AM
_NOT_MASKED
Thanks.