Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Log file of Visual Studio buildtools reveals all plan variables even the "secret" ones!!!


I am trying to build my test database project using Bamboo and Visual Studio 2022 Build Tools. I want to generate a log file containing build logs.

My build script is something like below:

"C:\Program Files (x86)\Microsoft Visual Studio\2022\BuildTools\MSBuild\Current\Bin\MSBuild.exe" ^
C:\bamboo-home\local-working-dir\P1-PL1-BDJ\DbSource\Database3.sln /maxCpuCount /t:Rebuild /p:Configuration=Release /fileLogger1 /fileLoggerParameters1:LogFile=C:\bamboo-home\local-working-dir\P1-PL1-BDJ\DbSource\MSBuildLog.txt;Append;Verbosity=diagnostic;Encoding=UTF-8


After the execution, the generated MSBuildLog.txt contains all plan variables' value unencrypted! They are even not used for this build task.

 Screenshot 2022-05-30 075952.png

Why is this happening? How can I prevent these irrelevant information from being logged?



1 answer

1 accepted

1 vote
Answer accepted
Alexey Chystoprudov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 30, 2022

Bamboo makes all variables available for executed commands and scripts so user could use them during build process. It has logic to hide them at build logs, but have no control over other apps. It's by design

Sure, but these variables have no use here and do not exists or placed in the executing script. I don't know why they are there as the task don't use them.

Eduardo Alvarenga
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 30, 2022

Hello @farhad0987654321, these are either Plan, Project or Global variables. Check the following documentation:

Eduardo Alvarenga
Atlassian Support APAC

Like farhad0987654321 likes this

Thank you guys, @Eduardo Alvarenga and @Alexey Chystoprudov

I solved it. I know about Bamboo variables, but I wrongly configured the MSBuild logger in diagnostic mode which logs out all variables.

Suggest an answer

Log in or Sign up to answer
AUG Leaders

Atlassian Community Events