如何在Jenkins控制台输出中隐藏密码? [英] How to hide passwords in Jenkins console output?

查看:658
本文介绍了如何在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.

这篇关于如何在Jenkins控制台输出中隐藏密码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆