I have on-prem TFS 2015, and want to run gitversion, so added step as below:
GitVersion.yml:
mode: Mainline
branches:
feature:
mode: ContinuousDeployment
tag: rc
increment: Minor
source-branches:
- master
fix:
mode: ContinuousDeployment
tag: rc
increment: Patch
regex: ^fix[/-]
bug:
mode: ContinuousDeployment
tag: rc
increment: Patch
regex: '(bug(fix(es)?)?|support)[/-]'
source-branches:
- master
upgrade:
mode: ContinuousDeployment
tag: rc
increment: Major
regex: '(upgrade|major)[/-]'
source-branches:
- master
Build agent is on windows server, installed GitVersion
dotnet tool install --global GitVersion.Tool --version 5.*
But pipeline fails
2022-11-10T11:43:24.9727477Z ##[section]Starting: gitversion/execute
2022-11-10T11:43:24.9934703Z ==============================================================================
2022-11-10T11:43:24.9934703Z Task : Execute GitVersion Task
2022-11-10T11:43:24.9934703Z Description : Easy Semantic Versioning (http://semver.org) for projects using Git
2022-11-10T11:43:24.9934703Z Version : 0.9.15
2022-11-10T11:43:24.9934703Z Author : GitTools Contributors
2022-11-10T11:43:24.9934703Z Help : See the [documentation](https://gitversion.net/docs/) for help
2022-11-10T11:43:24.9934703Z ==============================================================================
2022-11-10T11:43:25.4018670Z ##[error]A supported task execution handler was not found. This error usually means the task does not carry an implementation that is compatible with your current operating system. Contact the task author for more details.
2022-11-10T11:43:25.4018670Z ##[section]Finishing: gitversion/execute
On build machine downloaded gitversion to C:\GitVersion folder then on CI/CD pipeline added task execute command
C:\GitVersion\GitVersion.exe /output buildserver /nofectch