linux - 如何从 jenkins shell 输出中隐藏密码

标签 linux bash shell jenkins

我有两个脚本,第一个是文件系统,第二个是 jenkins 作业。 第二个脚本调用第一个并将参数传递给它。 参数包含密码参数。 如何将密码隐藏到日志中? 我尝试使用 exec 命令隐藏输出,但问题没有解决。

最佳答案

Mask Passwords plugin就是这样做的。

关于linux - 如何从 jenkins shell 输出中隐藏密码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23606922/

相关文章:

linux - 输出重定向中的不明确时刻

python - 编译和安装 cantera python 模块时遇到问题

bash - shell 脚本 : how to read a text file that does not end with a newline on Windows

linux - 通过另一个文件的创建时间查找文件

python - Tmux 拆分窗口并激活 python virtualenv

macos - 跳过存在的文件时复制文件 - Unix

c - 如何指定在支持 2 个不同设备的驱动程序中打开哪个设备?

linux - 从 Crontab 执行时的不同结果

regex - [[ :upper:]] and [:upper:] (bash)? 之间有什么区别

javascript - 将变量从 shell 脚本传递到 js 脚本