Mask Passwords with specific pattern in pipeline job

This issue is archived. You can view it, but you can't modify it. Learn more

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)

       

       

            Assignee:
            Unassigned
            Reporter:
            Kiruthika Subramaniam
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Archived: