【问题标题】:Pass ant properties file in jenkins ant build setup在 jenkins ant 构建设置中传递 ant 属性文件
【发布时间】:2014-11-19 13:51:23
【问题描述】:

我正在尝试找出可以在“调用 Ant”构建步骤中传递 ant 属性文件的方式。你能告诉我正确的方向吗?

根据詹金斯“Invoke Ant”的描述,它只能接受name1=value1。

请给我推荐!!!

【问题讨论】:

    标签: ant jenkins


    【解决方案1】:

    您可以将您的 ant 属性文件放入您的项目中,并使用 build.xml 来包含您的属性文件,如下所示:

    build.xml:

    <property file="build.properties"/>
    

    项目结构:

    your_project
    --build.xml
    --build.properties
    

    【讨论】:

    • 谢谢赵志明。我知道这一点,但我是动态创建的道具,所以只能通过 jenkins 包含。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-05
    • 2015-01-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多