Using masked passwords with the Active Choices Plug-in
The Mask Passwords Plug-in allow users to automatically mask passwords in the console. You can also create global passwords, which is similar to what you can do in other plug-ins such as the EnvInject Plug-in.
The main difference is that any parameter defined in the global parameters section, is automatically masked, should it appears in the console output.
The plug-in has a Builder that iterates through the parameters to annotate the console output. You can read the code that does that here.
But if you need the value from that global parameter, in one of your Active Choices parameters, you can still mimic what that builder is doing. Here is an example.
example.groovy
|
|