问题描述
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.
这篇关于如何在 Jenkins 控制台输出中隐藏密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!