Skip to content

GitVersion Task in Team Services throws exception if mode is set to Mainline #1123

@Franklin89

Description

@Franklin89

I just created my build on VSO and used the GitVersion task from the marketplace. We are using the Mainline mode. The Task execution fails with the following exception:

2016-12-21T07:30:32.1711902Z YamlDotNet.Core.YamlException: (Line: 1, Col: 7, Idx: 6) - (Line: 1, Col: 15, Idx: 14): Exception during deserialization ---> System.ArgumentException: Requested value 'Mainline' was not found.

This works fine on my local machine and my laptop.
It is using the version:

2016-12-21T07:30:24.1051319Z ============================================================================== 2016-12-21T07:30:24.1051319Z Task : GitVersion Task 2016-12-21T07:30:24.1051319Z Description : Easy Semantic Versioning (http://semver.org) for projects using Git 2016-12-21T07:30:24.1051319Z Version : 3.6.5 2016-12-21T07:30:24.1051319Z Author : GitVersion Contributors 2016-12-21T07:30:24.1051319Z Help : See the [documentation](http://gitversion.readthedocs.org/en/latest/) for help 2016-12-21T07:30:24.1051319Z ==============================================================================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions