TF_BUILD not set during build
See original GitHub issueHave you tried trouble shooting?
Agent Version and Platform
Version of your agent? 2.102.0/2.100.1/…
OS of the machine running the agent? Raspbian Linux
VSTS Type and Version
VisualStudio.com or On-Prem TFS?
If VisualStudio.com, what is your account name? http://mtntop.visualstudio.com
What’s not working?
The environment variable TF_BUILD is not present when running a build. Is it the responsibility of the system to set this env var?
Agent and Worker’s Diagnostic Logs
Logs are located in the agent’s _diag
folder. The agent logs are prefixed with Agent_
and the worker logs are prefixed with Worker_
. All sensitive information should already be masked out, please double check before pasting here.
Related Repositories
Please ensure you are logging issues to the correct repository in order to get the best support.
- Tasks Repository - contains all of the inbox tasks we ship with VSTS/TFS. If you are having issues with tasks in Build/Release jobs (e.g. unreasonable task failure) please log an issue here.
- Hosted Agent Image Repository - contains the VM image used in the VSTS Hosted Agent Pool. If you are having Build/Release failures that seems like they are related to software installed on the Hosted Agent (e.g. the DotnetSDK is missing or the AzureSDK is not on the latest version) please log an issue here.
If you are hitting a generic issue about VSTS/TFS, please report it to the Developer Community
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (8 by maintainers)
@tylerl0706 try this: https://stackoverflow.com/questions/8633461/how-to-keep-environment-variables-when-using-sudo
of course! That did the trick. Thanks for that.