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

Mask Passwords with specific pattern in pipeline job

XMLWordPrintable

      Hi,

      We have a setup which has multiple servers and the credentials are defined in yaml file. the user name or password or the variable name differs for each server

      example: 

      server_a_user=abc

      server_a_password=abc

      server_b_password=abc

      server_b_user=abc

      And all these passwords do have a common pattern.

      So all these are read dynamically, so we dont have specific variables to use mask function. Can you help us how can we mask the password with particualr regex and not using their variable names , as there are multiple variables used and read dynamically in Jenkins pipeline script(groovy)

       

       

            Unassigned Unassigned
            kiruthisubbu Kiruthika Subramaniam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: