Currently using:
I have a pipeline job using a non stored password parameter (name: SECRET) and a password parameter (name: SECRET2), both should be masked as I configured it in the Jenkins main configuration section for this Mask Password plugin.
I am running this code:
stage("Testing secret parameters") { steps { script { print "SECRET: " + params.SECRET } sh """echo \"$SECRET\" \ echo \"${SECRET}\"""" sh '''echo \'$SECRET\' \ echo ${SECRET}''' } }stage("Testing secret2 parameters") { steps { script { print "SECRET2: " + params.SECRET2 sh """echo \"$SECRET2\" \ echo \"${SECRET2}\"""" sh '''echo "$SECRET2" \ echo "${SECRET2}"''' } } }
It is being printed in plain text in all cases when it should be masked. Am I doing something really wrong or this plugin is not working anymore?
Thanks in advance!