![](/img/trans.png)
[英]In an ANT build.xml file, how can I iterate over the items in the ${env} variable?
[英]How do I set the path to the build.xml file in a Jenkins ant build from an environment variable on Windows
我正在Windows中從Jenkins運行一個螞蟻構建,希望將路徑傳遞到環境變量中的build.xml文件。 我正在使用envinject插件來這樣做。 我希望在“准備運行環境”->“屬性內容”下的項目上設置變量:
ANTBUILDDIR=C:\some\directory\here
然后在ant build屬性中設置:
"Build File": %ANTBUILDDIR%\build.xml
嘗試$ANTBUILDDIR/TheBuildFile.xml
因為Jenkins的配置遵循Unix shell變量擴展語法。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.