ParametersPreprocessor - how to inject secure parameters

Hi,

I am developing a TeamCity plugin that injects environment variables into builds using the ParametersPreprocessor server-side extension point. Injecting the variables works great - when I have a build step that runs "env" I can see that the values are correct.

However, the values I am injecting are sensitive and I would like them to be masked like user-provided parameters that have the type "password". I can't work out how to achieve this. Is there a different extension point I should be using?

Regards,
Aidan

0
1 comment

Hello,

There is a jetbrains.buildServer.serverSide.parameters.types.PasswordsProvider extension. 

Your plugin can have an implementation of this extension. When it is called it should return collection of parameters which contain passwords.

Note: it's not a replacement for ParametersPreprocessor, you still need it too. 

0

Please sign in to leave a comment.