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

After entering a username/password combo in Credentials Binding, I can print out the value of the password inside a Jenkins job

      I used the Credentials Binding plugin to store a username/password pair in the Jenkins global config.
      Then, I created a project, and bound a username/password variables to these credentials.
      Then I was able to print out the value of the password to the console log.
      Screen shots are attached.

          [JENKINS-28219] After entering a username/password combo in Credentials Binding, I can print out the value of the password inside a Jenkins job

          Jesse Glick added a comment -

          JENKINS-27486 covers an analogous scenario from inside a Workflow job.

          Jesse Glick added a comment - JENKINS-27486 covers an analogous scenario from inside a Workflow job.

          Jesse Glick added a comment -

          You need to use the Mask Passwords plugin if you wish to prevent accidental disclosure of passwords.

          Jesse Glick added a comment - You need to use the Mask Passwords plugin if you wish to prevent accidental disclosure of passwords.

          M Chon added a comment -

          I tried using Mask Passwords. It did not seem to work. I will attach a screen shot of my Mask Passwords config.

          M Chon added a comment - I tried using Mask Passwords. It did not seem to work. I will attach a screen shot of my Mask Passwords config.

          Jesse Glick added a comment -

          Screenshots are less useful than complete, self-contained test cases as $JENKINS_HOME configuration (e.g., job config.xml).

          Jesse Glick added a comment - Screenshots are less useful than complete, self-contained test cases as $JENKINS_HOME configuration (e.g., job config.xml ).

          Jesse Glick added a comment -

          Your job config does not mention MaskPasswordsBuildWrapper so it is not surprising it does not work.

          Jesse Glick added a comment - Your job config does not mention MaskPasswordsBuildWrapper so it is not surprising it does not work.

            jglick Jesse Glick
            mcsf M Chon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: