Reputation: 17356
I'm reading through the documentation about the Bamboo Inject Variables Plugin and it is not obvious whether the file is supposed to be located at a URL, location on the build server, or collocated within the source repository.
In my case I would prefer the later option where it can be referenced within the source code repository itself I'm considering using this plugin if it supports this mode of usage. Unfortunately the documentation and community links appear to be broken.
Related questions:
Upvotes: 0
Views: 3332
Reputation: 17356
Yes, it appears that this is the default and perhaps the only place the Bamboo Inject Variables Plugin checks for the variable declaration file.
To test this I added a Bamboo Inject Variables Plugin task to look for a variable declaration file called .build-vars
. When running the build I can see that the following error was generated which indicates that Bamboo was looking for the file under the staging directory where the source repositories code is cloned and built.
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
I'm guessing that based on this it may be possible if one wanted to to set an absolute or relative path for the Path to properties file
parameter but I haven't tried it myself as the result above is what I was looking for.
Upvotes: 2