You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I have a config file in my project
parameters:
environment: development
redis.host: 127.0.0.1
database.credentials:
host: localhost
prefix: ${bamboo.agentId}
mainDatabaseSuffix: main
mainDatabaseUsername: ${bamboo.agentId}_main
password: password
database.host: localhost
As part of the build I copy this file, and would like to overwrite the values with bamboo parameters. How do I go about this?
I have tried
sed 's/${bamboo.agentId}/${bamboo.agentId}/g' src/Resources/config/parameters.yml
also
sed 's/${bamboo.agentId}/$bamboo_agentId/g' src/Resources/config/parameters.yml
Also replacing the variable in the file with some placeholder
sed 's/BAMBOO_AGENTID/${bamboo.agentId}/g' src/Resources/config/parameters.yml
Also heaps of other methods to escape etc but no success. Is there a way to replace all the variables in a file using bamboo rather than sed? If not, any tips on using sed for this?
Thanks in advance
I'm happy to announce that Bamboo 7.2 has been released and it’s overflowing with awesome new features. This will be the last major Server release before the launch of Bamboo DC. Bamboo logs We...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events