如何将变量值从Azure Devops传递到POM.xml

问题描述 投票:0回答:1

我有一个POM.xml文件,我想在其中使用插件标签下的surefire中的azure devops管道在运行时传递TestNG.XML值

请帮助实现这一目标。

selenium maven automation azure-devops pom.xml
1个回答
0
投票

如何将变量值从Azure Devops传递到POM.xml

您可以使用Replace Token task传递变量值到POM.xml。

enter image description here

POM.xml文件中变量的格式为#{TheVariable}#

然后,在变量上定义键的值:

enter image description here

希望这会有所帮助。

© www.soinside.com 2019 - 2024. All rights reserved.