Skip to content

[ISSUE]: gitversion-execute@4.2.0 fails on Windows (with self hosted agent?) #1912

@denisbredikhin

Description

@denisbredikhin

Prerequisites

  • I have written a descriptive issue title
  • I have searched issues to ensure it has not already been reported

GitVersion package

AzureDevops task

What are you seeing?

We are using gitversion-setup@4.2.0, gitversion 6.5.x and gitversion-execute@4.2.0
On the execute step I see the following:

Starting: Execute GitVersion

Task : Execute GitVersion Task
Description : Easy Semantic Versioning (https://semver.org/) for projects using Git
Version : 4.2.0
Author : GitTools Contributors
Help : See the documentation for help

Running on: 'Azure Pipelines'
Disable Telemetry
Command: git -C D:\VSTS Agents\AgentB11_2_work\16118\s rev-parse --is-shallow-repository
Command: D:\VSTS Agents\AgentB11_2_work_tool\GitVersion.Tool\6.5.1\dotnet-gitversion.exe --roll-forward Major "D:\VSTS Agents\AgentB11_2\_work\16118\s" /output file /outputfile "D:\VSTS Agents\AgentB11_2\_work\_temp\gitversion-840c9fba-3b22-4b99-a68d-ea0630d4dee3.json" /l console /config gitVersion.yml
##[error]'D:\VSTS' is not recognized as an internal or external command,
operable program or batch file.

##[error]'D:\VSTS' is not recognized as an internal or external command,
operable program or batch file.

Finishing: Execute GitVersion

What is expected?

gitversion-execute@4.2.0 should be successfully executed

Steps to Reproduce

Unfortunately I don't know how exactly our build agent is configured.
I believe the issue is because of the space in the folder name.

Output log or link to your CI build (if appropriate).

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions