今天介绍一个插件 hidden-parameter-plugin

hidden-parameter-plugin

    这个插件用来隐藏 字符串参数的,就是用这种类型的参数 在 build with parameters 界面 不会显示出来。
    但是在job中还是有这个参数的。用法 可以把一些不会变的参数 做成隐藏的。

对此插件的增强

1. 增加可以隐藏 text类型的才是,也就是 多行字符串那种的参数
2. 支持 流水线中使用。 hidestring hidetext  或者 hidestringParam hidetextParam
3. https://github.com/mamh-java/hidden-parameter-plugin/tree/hidden-parameter-0.0.6-for-jenkins-2.249.3

Characteristics

    1. Parameters once more, it looks bad user experience.this plugin can resolve the problem.
    2. Some key parameters, once modified, can lead to the risk.these parameters,only administrator can modify,to reduce the risk.
    3. Hidden parameter,only hide in the build execution, in job configuration's page can modify.
    4. After the build, parameter list can display hidden parameters.

Use case

After the plugin is installed,in job configuration’s page,you can see Hidden Parameter:

for example,you add a hidden parameter,is called hidden_para.

click ‘Build With Parameters’ link ,the parameter hidden_para of the set before, is hide,don’t display in this page.

After the build , click ‘Parameters’ link, parameter list can display hidden parameters hidden_para.