question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TF_BUILD not set during build

See original GitHub issue

Have you tried trouble shooting?

Trouble shooting doc

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.

logs.log

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:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

0reactions
TylerLeonhardtcommented, Oct 4, 2018

of course! That did the trick. Thanks for that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TFS Build - Not including latest changeset
The issue I appear to be having is that all change sets since the last successful build are included, except, the change set...
Read more >
TFS Build Gated Check-in without Get Sources
I have CI builds for solutions A and E but want to do this script (that does not build, only check the changes...
Read more >
Problems with VSTS/TFS Build process
I'm currently trying to set up our first build process for a readyroll project and I'm running into a set of problems. Disclaimer:...
Read more >
Manage Environment Variables during a TFS VSTS Build
Another interesting aspect of Environment variables, is that they can be set during a VSTS/TFS build directly from build definition.
Read more >
TFS Build Fails but no Buildmaster shows complete and ...
We have BuildMaster set up to build automatically from TFS on check-in, ... at the Build Controller in TFS it is very clear...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found