Closed claremacrae closed 4 years ago
The variable to use is TF_BUILD
TF_BUILD Set to True if the script is being run by a build task.
This variable is agent-scoped, and can be used as an environment variable in a script and as a parameter in a build task, but not as part of the build number or as a version control tag.
This is fixed, and documented - and will be included in the next release.
A user is running on Azure Pipelines CI system - so it would be good to have this detected automatically.
I'm struggling to spot the list of environment variables set for this in the following...
https://docs.microsoft.com/en-us/azure/devops/pipelines/build/variables?view=azure-devops&viewFallbackFrom=vsts&tabs=yaml