Skip to content

[ISSUE]: Gittools Azure DevOps task 3.0.4 unable to retrieve gitversion output variables value or set version  #1389

@xlreme

Description

@xlreme

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?

Platform: Azure DevOps Task
GitTools: 3.0.4
GitVersion: 5.12.0

Unable to output the value for GitVersion.SemVer, GitVersion.NugetVersion and etc in the next subsequent Azure Devops tasks.

This is working in GitTools 3.0.3 and below

What is expected?

The next subsequent Azure DevOps Task should be able to retrieve the GitVersion output values after running gitversion/setup & gitversion/execute tasks.

Steps to Reproduce

  1. Use Azure DevOps task gitversion/setup@3 or gitversion/[email protected], use input, version spec "5.x"

  2. Use Azure DevOps task gitversion/execute@3 or gitversion/[email protected]

  3. Next, use bash task to output $(Gitversion.SemVer)and note the output.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions