Skip to content

[ISSUE]: gitVersion execute task not immediately available after gitVersion setup task #1515

@edgarkiechle

Description

@edgarkiechle

Prerequisites

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

GitVersion package

AzureDevops task

GitVersion version

2.0.1

Operating system

Linux

What are you seeing?

After running task gitversion/setup and gitversion/execure both on version v2, the first pipeline run fails immediately on gitversion execute with the following error

Image

Image

On the second attempt the execute task passes, same pipeline, same agent, second attempt

Image

It seems like the PATH is not immediately available after installation.

What is expected?

Gitversion/execute task should work every single time after gitversion/setup

Steps to Reproduce

Run the following tasks on a self hosted agent.

  • task: gitversion/setup@2
    displayName: "Use GitVersion ${{ parameters.GitVersionRelease }}"
    inputs:
    versionSpec: ${{ parameters.GitVersionRelease }}

  • task: gitversion/execute@2
    displayName: "Calculate version (if available)"
    inputs:
    updateAssemblyInfo: false

RepositoryFixture Test

No response

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