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

    Details

    • Similar Issues:

      Description

      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.

        Attachments

          Issue Links

            Activity

            Hide
            jglick Jesse Glick added a comment -

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

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

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

            Show
            jglick Jesse Glick added a comment - You need to use the Mask Passwords plugin if you wish to prevent accidental disclosure of passwords.
            Hide
            mcsf 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.

            Show
            mcsf 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.
            Hide
            jglick Jesse Glick added a comment -

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

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

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

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: