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

Unable to use masked passwords when passing in extra-vars

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
    • Environment:
      Jenkins Version: 1.623
      Ansible Plugin: 0.3.1
      envinject: 1.91.4
      mask-passwords: 2.7.4

      OS:3.4.83-70.111.amzn1.x86_64
      Ansible Version: 1.9.2
    • Similar Issues:

      Description

      I am unable to pass in a masked password as a variable via --extra-vars. I have tried using the EnvInject plugin and the Masked Password plugin to create the variable PASSWORD.

      I then pass it in via

      --etxra-vars="my_password=${PASSWORD}"
      

      When I debug the ansible playbook instead of my_password being the masked value it is "*******".

      It looks like the plugin does not attempt to unmask the variable before passing it to the playbook.

        Attachments

          Activity

            People

            Assignee:
            sirot Jean-Christophe Sirot
            Reporter:
            lucasweb Richard Lucas
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: