Jenkins参数化构建Jenkins从文件中读取运行参数构建版本号

https://www.cnblogs.com/xiaochengzi/p/8251805.html  

安装Extended Choice Parameter插件

选择‘参数化构建过程’

maven command line中进行引用

clean test -DsuiteXmlFile=src/main/resources/testng.xml -Dgroups="$TESTGROUP"
或者
clean test -DsuiteXmlFile=src/main/resources/testng.xml -Dgroups=${TESTGROUP}

最终效果

文件中的内容   groups=ma

想要自动构建,需要发起post请求 http://localhost:8080/jenkins/job/web%20robot/build?delay=0sec   

扫描二维码关注公众号,回复: 1026287 查看本文章

猜你喜欢

转载自www.cnblogs.com/lgqboke/p/9089219.html