背景
jenkins自带的参数化不支持多选框,不过有插件支持:Extended Choice Parameter Plug-In
插件地址: https://plugins.jenkins.io/extended-choice-parameter

使用教程

Name -- 定义变量名

Parameter Type -- check boxes 复选框

 

jenkins 多选框

 

设置好,展示如下:

jenkins 多选框

 

在后续操作中如果要使用这个多选框的话,使用${emails}

这里注意的是:不要勾选Quote Value


勾选了quote value的话,echo ${emails} 显示 <"test@111.com">

不勾选的话,echo ${emails} 显示 test@111.com ,没有<>和“”

 

当然勾选了肯定其他用途,暂时不知道怎么使用

 

相关文章:

  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-30
  • 2022-12-23
猜你喜欢
  • 2021-11-22
  • 2021-06-16
  • 2021-04-18
  • 2022-01-06
  • 2022-12-23
  • 2022-12-23
  • 2021-11-11
相关资源
相似解决方案