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

Unable to use masked passwords when passing in extra-vars

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 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

      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.

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

              Created:
              Updated:
              Resolved: