Skip to content

Wrong working directory when building on TeamCity #396

@johannesegger

Description

@johannesegger

When we run GitVersion 3.0.0-Beta1 on TeamCity, it clones parts of the repository to "_dynamicrepository" using GitPreparer.Prepare. When finished, this method returns the path to the prepared repository (i.e. "_dynamicrepository.git") and sets "_dynamicrepository" as working directory.
Now when the command line switch /exec is set, GitVersion executes the exe in the dynamic repository instead of the original repository as we would have expected. That then destroys some relative paths we are working with in the supplied exe file.
Can you confirm this or are we doing something wrong here?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions