Forum Discussion

mluhring's avatar
mluhring
Copper Contributor
Feb 10, 2024

What happened to my GitVersion pipeline task?

All of a sudden this afternoon my pipelines are failing due to GitVersion no longer being installed and not being an available task to install.  Anyone know why this happened?

    • MarkL_nz's avatar
      MarkL_nz
      Copper Contributor

      mluhring Ha! They say in their update that deprecated tasks should be available again but the GitVersion task is still marked as "unpublished" and not available. 

      Does anyone else actually have the task available? 

  • Chalermchai's avatar
    Chalermchai
    Brass Contributor
    You check your permissions first to see if anything has been changed.
    You can connect to a Git repository only if you have a valid Premium license. If your license expires or you change a license without Git integration, you will no longer be able to connect to the Git repository. This also applies to trial licenses.
  • Martin_Dufresne's avatar
    Martin_Dufresne
    Copper Contributor

    Somehow there's a breaking change.

    Replace your GitVersion task with these two:

     

     

    - task: gitversion/setup@0
      inputs:
        versionSpec: '5.x'
        preferLatestVersion: true
    
    - task: gitversion/execute@0
      inputs:
        additionalArguments: '/updateassemblyinfo "src/Solution Items/SharedAssemblyInfo.cs"'

     

     

    We had to use additionalArguments because the task's GUI parameter doesn't seem to like the space in our path.

    This bug applies to Marketplace extension GitTools:

    Extension details: Build tasks for easy semantic versioning for projects using Git and release management.
    Publisher: GitTools
    Installed version: 0.11.0.24020712 (Latest)
    Last updated: Feb 7, 2024 at 7:46 AM EST
    • mluhring's avatar
      mluhring
      Copper Contributor

      Martin_Dufresne 

      I put in the fix Saturday morning.  Apparently Microsoft removed deprecated tasks without regard to whether people were using them.

  • Check for Updates: Ensure that you're using the latest version of GitVersion and that your Azure DevOps environment is up to date. Review Configuration: Double-check your pipeline configuration to make sure that the GitVersion task is correctly set up.

Resources