I have a build plan that includes a Powershell script that calls git describe --tags --long. This plan is run by a remote agent on Windows Server 2012. The return from the script is: fatal: No names found, cannot describe anything.
Yet when the same Powershell script is run from the command line, in the same build directory, it succeeds.
The first task in the build is to freshly clone the git repository and from the build log I can see that tags are included:
<span><span>30-Jan-2017 08:19:21 <span>* [new branch] master -> master</span></span></span>
<span><span><span><span>30-Jan-2017 08:19:21 <span>* [new tag] 0.2.34.2 -> 0.2.34.2</span></span></span></span></span>
<span><span><span><span><span><span>30-Jan-2017 08:19:21 <span>* [new tag] 0.2.33.0 -> 0.2.33.0</span></span></span></span></span></span></span>
<span><span><span><span><span><span><span><span>30-Jan-2017 08:19:21 <span>* [new tag] 0.2.0.0 -> 0.2.0.0</span></span></span></span></span></span></span></span></span>
Bamboo Server is running on Ubuntu 16.0 and is v5.12.3.1. The remote agent is the same version.
Can anyone please explain this behaviour?