如何在Jenkins控制台输出中隐藏密码?
Mask Passwords插件仅允许将预设密码传递到构建过程中,因此它实际上对工作的安全性没有任何作用。
The Mask Passwords plugin only allows for preset passwords to be passed in to the build process, so it really does nothing for the security of the Job.
我需要每次运行作业时都需要输入一个密码参数(作为参数),我需要在控制台输出中将其屏蔽。
I need a password parameter that needs to be entered every time the job is run (as a parameter) and I need that to be masked in the console output.
根据我的意思阅读,去管理Jenkins->配置系统并选择屏蔽密码参数应该起作用,但是由于某些原因这不是。.
From what I am reading, going to Manage Jenkins -> Configure System and selecting to mask Password Parameters should work, but it is not for some reason.. any suggestions?
使用Jenkins 1.609.1和面具密码插件 2.7.3。您需要在配置系统以及您要使用它的作业中激活它。在作业配置中,必须激活掩码密码这一点,然后才能使用全局配置来屏蔽密码。
Tested with Jenkins 1.609.1 and Mask Passwords Plugin 2.7.3. You need to activate it in the "Configure System" and also in the job you want to use this. In the job configuration is a point "Mask passwords" which must be activated and then will use the global config to mask passwords.