【问题标题】:How do I set the path to the build.xml file in a Jenkins ant build from an environment variable on Windows如何从 Windows 上的环境变量设置 Jenkins ant 构建中 build.xml 文件的路径
【发布时间】:2014-03-08 01:11:28
【问题描述】:

我正在从 Jenkins 在 Windows 中运行 ant 构建,并希望将路径传递给环境变量中的 build.xml 文件。我正在使用 envinject 插件来做到这一点。我希望在“准备运行环境”->“属性内容”下的项目上设置变量:

ANTBUILDDIR=C:\some\directory\here 

然后在我设置的ant build属性中:

"Build File": %ANTBUILDDIR%\build.xml 

【问题讨论】:

    标签: windows ant jenkins environment-variables


    【解决方案1】:

    尝试$ANTBUILDDIR/TheBuildFile.xml,因为 Jenkins 配置遵循 Unix shell 变量扩展语法。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-08-02
      • 1970-01-01
      • 1970-01-01
      • 2021-01-31
      • 2011-01-25
      • 2017-12-20
      • 1970-01-01
      • 2016-07-28
      相关资源
      最近更新 更多