一、应用场景

1、存在一个maven工程,通过jenkins运行该maven工程时,需要实时获取从jenkins中传递过来的参数

2、testng.xml中使用jenkins传递过来的参数,运行相关用例

二、配置

1、jenkins中配置参数化构建

jenkins中参数化构建传递参数给maven工程

2、配置maven中的pom.xml文件

jenkins中参数化构建传递参数给maven工程

3、testng.xml中运用该参数

jenkins中参数化构建传递参数给maven工程

4、运行jenkins,输入参数

jenkins中参数化构建传递参数给maven工程

相关文章:

  • 2021-05-11
  • 2022-01-17
  • 2022-12-23
猜你喜欢
  • 2021-10-09
  • 2021-07-28
  • 2021-07-27
  • 2022-01-20
  • 2021-08-09
  • 2021-08-21
  • 2021-08-18
相关资源
相似解决方案