Reputation: 457
Sometime in the past 2-3 hours, my builds have started failing on this step:
- script: $(Build.BinariesDirectory)/tools/GitVersion.CommandLine/tools/GitVersion.exe /output buildserver /nofetch
..with the error:
The system cannot find the path specified.
##[error]Cmd.exe exited with code '1'.
I'm assuming that it can't find the script specified in the task - is this right, and if so how can I find its new location?
Upvotes: 0
Views: 840
Reputation: 35574
For Microsoft-hosted agents:
You could directly use the “GitVersion.exe /output buildserver /nofetch”
In this way, you can avoid entering the wrong path.
use gitversion
For Self-hosted agents:
You could run the “WHERE /R c:\ gitversion.exe”
script in “command line task” to get the specific path.
And then you can modify your script according to the obtained path.
For example:
find gitversion
By the way, if you couldn’t find file, please check the version of the GitVersion.
According to the Release Note: “Chocolatey: executable missing in GitVersion.Portable 5.3.0” ,this could cause the “Gitversion.exe” missing. You could upgrade the GitVersion to 5.3.1.
Upvotes: 1