title: Password shows in plain text using Jenkins credentials plugin
body: <p>I am trying to use Jenkins Credentials plugin to get user input and make use of it in Jenkinsfile for processing. Since the password field is highly sensitive, I was hoping credentials plugin would mask the password from displaying in the console output. However seems like password is displayed in plain text. I noticed an existing issue <a href="https://issues.jenkins-ci.org/browse/JENKINS-38181" rel="nofollow noreferrer">https://issues.jenkins-ci.org/browse/JENKINS-38181</a> that talks about echo statements outside of withCredentials block displays passwords in plain text, which is expected. But in my case, even echo statements inside withCredentials block is displayed plain. </p>
  
  <p>Am i doing something wrong here? Should I just refrain from using echo?</p>
  
  <p>Credentials Binding Plugin: 1.12<br>
  Credentials Plugin: 2.1.16  </p>
  
  <pre><code> node('someagent') {
      stage 'input'
      def userNameInput = input(
          id: 'UserName', message: 'input your username: ', ok: 'ok', parameters: [string(defaultValue: 'user', description: '.....', name: 'DB_USER')]
      )
      def userPasswordInput = input(
          id: 'Password', message: 'input your password: ', ok: 'ok', parameters: [string(defaultValue: 'password', description: '.....', name: 'DB_PASS')]
      )
      withCredentials(bindings: [usernamePassword(credentialsId: 'CREDS', usernameVariable: userNameInput, variable: userPasswordInput)]) {
       echo ("My Username: ${userNameInput}")
       echo ("My Password: ${userPasswordInput}")
      }
  }
  </code></pre>
  
  <p>Console Output:</p>
  
  <pre><code>[Pipeline] {
  [Pipeline] stage (input)
  Using the ‘stage’ step without a block argument is deprecated
  Entering stage input
  Proceeding
  [Pipeline] input
  Input requested
  Approved by UserId
  [Pipeline] input
  Input requested
  Approved by UserId
  [Pipeline] withCredentials
  [Pipeline] {
  [Pipeline] echo
  My Username: user
  [Pipeline] echo
  My Password: password
  [Pipeline] }
  [Pipeline] // withCredentials
  [Pipeline] }
  [Pipeline] // node
  [Pipeline] End of Pipeline
  Finished: SUCCESS
  </code></pre>