Use jenkins to inject masked password for use in code within the build
问题 My aim: To use a password in jenkins which is masked after input and runtime. I only need it for my job. I can use it in my java code to login to a website. Areas I have looked at: The credentials plugin - this looks like the right area (but I'll need to get the sysadmins to add me as its locked down). Also I can't find out how you can access the output? 回答1: Have a look into the EnvInject plugin, there you can define password parameters that are masked in console output and job configuration