我在C以下構建文件:\ A \ B
<project name="demo" default="printCWD">
<target name="printCWD">
<echo message="user.dir=${user.dir}"/>
</target>
</project>
,並同時使用C運行此命令:\ A
ant -buildfile B\build.xml
它打印 「C:\ A」
但是從Ant插件安裝一個詹金斯CI機,其具有構建文件設置爲 「B/build.xml中」 上,它打印「/工作區/ B「
爲什麼在我的本地機器上打印我從中調用ant命令的文件夾,但在Jenkins CI服務器上它打印了構建文件所在的文件夾?
非常感謝您的幫助。
保羅
非常感謝! – Paul