Forum Discussion
mluhring
Feb 10, 2024Copper Contributor
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?
- mluhringCopper Contributor
- mluhringCopper Contributor
MarkL_nz
See the response from Martin_Dufresne above. you need to update how you use GitVersion.
- ChalermchaiBrass ContributorYou 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_DufresneCopper 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: GitToolsInstalled version: 0.11.0.24020712 (Latest)Last updated: Feb 7, 2024 at 7:46 AM EST- mluhringCopper Contributor
Martin_Dufresne
I put in the fix Saturday morning. Apparently Microsoft removed deprecated tasks without regard to whether people were using them.- ChristianEstayCopper Contributor
mluhring Hi!, please can you tell me, how do you fix the pipeline in Azure DevOps?
- Jagan_AzureCloudCopper ContributorCheck 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.