Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-60555

Mask Passwords Plugin not working at all

XMLWordPrintable

      Currently using:

      • Jenkins ver. 2.194
      • Mask Passwords Plugin ver. 2.12.0

      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!

            Unassigned Unassigned
            froblesmartin Francisco Robles Martin
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: