为 Bamboo Inject Variables Plugin 指定的文件是否存在于源存储库中?
Can the file specified for the Bamboo Inject Variables Plugin exist in the source repository?
我正在阅读有关 Bamboo Inject Variables Plugin 的文档,不清楚该文件是应该位于构建服务器上的 URL 位置,还是并置在源存储库。
在我的例子中,我更喜欢后面的选项,它可以在源代码存储库本身中引用我正在考虑使用这个插件,如果它支持这种使用模式。不幸的是,documentation and community 链接似乎已损坏。
相关问题:
- How to parameterize Bamboo builds?
- Can Bamboo variables be overridden by a Script task?
是的,这似乎是默认的,也许是 Bamboo 注入变量插件检查变量声明文件的唯一地方。
为了测试这一点,我添加了一个 Bamboo Inject Variables Plugin 任务来查找名为 .build-vars
的变量声明文件。当 运行 构建时,我可以看到生成了以下错误,这表明 Bamboo 正在寻找克隆和构建源存储库代码的暂存目录下的文件。
simple 15-May-2017 09:42:57 Starting task 'Inject Repo Variables' of type 'com.atlassian.bamboo.plugins.bamboo-variable-inject-plugin:inject'
error 15-May-2017 09:42:57 Could not read variable file at 'E:\bamboo-agent-home\xml-data\build-dir\KEY-KEY0-JOB1\.build-vars' as it does not exist.
simple 15-May-2017 09:42:57 Finished task 'Inject Repo Variables' with result: Error
我猜测基于此,如果有人想为 Path to properties file
参数设置绝对或相对路径是可能的,但我自己没有尝试过,因为上面的结果是什么我在找。
我正在阅读有关 Bamboo Inject Variables Plugin 的文档,不清楚该文件是应该位于构建服务器上的 URL 位置,还是并置在源存储库。
在我的例子中,我更喜欢后面的选项,它可以在源代码存储库本身中引用我正在考虑使用这个插件,如果它支持这种使用模式。不幸的是,documentation and community 链接似乎已损坏。
相关问题:
- How to parameterize Bamboo builds?
- Can Bamboo variables be overridden by a Script task?
是的,这似乎是默认的,也许是 Bamboo 注入变量插件检查变量声明文件的唯一地方。
为了测试这一点,我添加了一个 Bamboo Inject Variables Plugin 任务来查找名为 .build-vars
的变量声明文件。当 运行 构建时,我可以看到生成了以下错误,这表明 Bamboo 正在寻找克隆和构建源存储库代码的暂存目录下的文件。
simple 15-May-2017 09:42:57 Starting task 'Inject Repo Variables' of type 'com.atlassian.bamboo.plugins.bamboo-variable-inject-plugin:inject'
error 15-May-2017 09:42:57 Could not read variable file at 'E:\bamboo-agent-home\xml-data\build-dir\KEY-KEY0-JOB1\.build-vars' as it does not exist.
simple 15-May-2017 09:42:57 Finished task 'Inject Repo Variables' with result: Error
我猜测基于此,如果有人想为 Path to properties file
参数设置绝对或相对路径是可能的,但我自己没有尝试过,因为上面的结果是什么我在找。