Bamboo variable replacement not working inside text / asp.net configuration files

Slowly going crazy, I'm trying to inject Bamboo variables into a text file. I tried many combinations, but to no avail, it might not seem like my variable is being replaced during the Atlassian Bamboo build process. I am running Bamboo on Windows.

Any ideas? This is just a .txt file that is sent along with my build artifacts.

While ASP.NET is not specific, I will eventually want to replace some lines in the Web.config file.

As you can see from the output of my vartest.txt file, no combinations of variables are replaced.

%bamboo.test.variable%
%BAMBOO.test.variable%
%BAMBOO.TEST.VARIABLE%
%BAMBOO_TEST_VARIABLE%
%bamboo_test_variable%
${bamboo.test.variable}
%test_variable%
%TEST_VARIABLE%
%TEST.VARIABLE%

This is my setup (according to the documentation they should be available through% BAMBOO_TEST_VARIABLE%): enter image description here

+4
1

, .

script, . . Windows? .

script ${bamboo.CONNSTRING_PASSWORD} ( ) web.config %BAMBOO_CONNSTRING_PASSWORD%.

+3

Source: https://habr.com/ru/post/1607612/


All Articles