consistent failure in GitVersion increment in ADO using v3 of the extension with gitversion 6.0.X #1390
Replies: 1 comment
-
i've tried using versions 3.0.0, 3.0.1, 3.0.3 and 3.0.2 of the tools and with 3.0.2 i get the followign additional output fromt he intcremetns step when turnign on debug: ##[debug]Evaluating condition for step: 'Increment Gitversion'
##[debug]Evaluating: and(succeededOrFailed(), eq('prod', 'prod'))
##[debug]Evaluating and:
##[debug]..Evaluating succeededOrFailed:
##[debug]..=> True
##[debug]..Evaluating eq:
##[debug]....Evaluating String:
##[debug]....=> 'prod'
##[debug]....Evaluating String:
##[debug]....=> 'prod'
##[debug]..=> True
##[debug]=> True
##[debug]Expanded: and(True, eq('prod', 'prod'))
##[debug]Result: True
Starting: Increment Gitversion
==============================================================================
Task : Execute GitVersion Task
Description : Easy Semantic Versioning (https://semver.org/) for projects using Git
Version : 3.0.2
Author : GitTools Contributors
Help : See the [documentation](https://gitversion.net/docs/) for help
==============================================================================
##[debug]Using node path: /home/vsts/agents/3.248.0/externals/node20_1/bin/node
Running on: 'Azure Pipelines'
##[debug]Disabling telemetry
Disable Telemetry
##[debug]Processed: ##vso[task.setvariable variable=DOTNET_CLI_TELEMETRY_OPTOUT;isOutput=false;issecret=false;]true
##[debug]Processed: ##vso[task.setvariable variable=DOTNET_NOLOGO;isOutput=false;issecret=false;]true
Executing GitVersion
##[debug]getVariable - INPUT_TARGETPATH: /home/vsts/work/1/s/crdadolz/
##[debug]getVariable - INPUT_DISABLECACHE: false
##[debug]getVariable - INPUT_DISABLENORMALIZATION: false
##[debug]getVariable - INPUT_DISABLESHALLOWCLONECHECK: true
##[debug]getVariable - INPUT_USECONFIGFILE: true
##[debug]getVariable - INPUT_CONFIGFILEPATH: /home/vsts/work/1/s/crdadolz/.config/GitVersion.yml
##[debug]getVariable - INPUT_OVERRIDECONFIG:
##[debug]getVariable - INPUT_UPDATEASSEMBLYINFO: false
##[debug]getVariable - INPUT_UPDATEASSEMBLYINFOFILENAME:
##[debug]getVariable - BUILD_SOURCESDIRECTORY: /home/vsts/work/1/s
##[debug]getVariable - INPUT_CONFIGFILEPATH: /home/vsts/work/1/s/crdadolz/.config/GitVersion.yml
##[debug]getVariable - BUILD_SOURCESDIRECTORY: /home/vsts/work/1/s
##[debug]getVariable - DOTNET_ROOT: ../share/dotnet
##[debug]getVariable - GITVERSION_PATH: /opt/hostedtoolcache/GitVersion.Tool/6.0.5
Command: /opt/hostedtoolcache/GitVersion.Tool/6.0.5/dotnet-gitversion /home/vsts/work/1/s/crdadolz/ /output json /output buildserver /config /home/vsts/work/1/s/crdadolz/.config/GitVersion.yml
##[debug]GitVersion failed
##[debug]task result: Failed
##[error]Command failed: /opt/hostedtoolcache/GitVersion.Tool/6.0.5/dotnet-gitversion /home/vsts/work/1/s/crdadolz/ /output json /output buildserver /config /home/vsts/work/1/s/crdadolz/.config/GitVersion.yml
##[debug]Processed: ##vso[task.issue type=error;]Command failed: /opt/hostedtoolcache/GitVersion.Tool/6.0.5/dotnet-gitversion /home/vsts/work/1/s/crdadolz/ /output json /output buildserver /config /home/vsts/work/1/s/crdadolz/.config/GitVersion.yml
##[debug]Processed: ##vso[task.complete result=Failed;done=true;]Command failed: /opt/hostedtoolcache/GitVersion.Tool/6.0.5/dotnet-gitversion /home/vsts/work/1/s/crdadolz/ /output json /output buildserver /config /home/vsts/work/1/s/crdadolz/.config/GitVersion.yml
INFO [24-12-10 8:50:08:26] Working directory: /home/vsts/work/1/s/crdadolz
INFO [24-12-10 8:50:08:50] Project root is: /home/vsts/work/1/s/crdadolz/
INFO [24-12-10 8:50:08:50] DotGit directory is: /home/vsts/work/1/s/crdadolz/.git
INFO [24-12-10 8:50:08:50] Branch from build environment: refs/heads/fix/gitversion
INFO [24-12-10 8:50:08:51] -< Begin: Normalizing git directory for branch 'refs/heads/fix/gitversion' >-
INFO [24-12-10 8:50:08:54] One remote found (origin -> 'https://bcagroup@dev.azure.com/bcagroup/CarlsPlayground/_git/crdadolz'). |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I'm a bit confused by this one.
we have had GitVersion 5.x in our subtree based repository template for sometime but its behaviour has been inconsistent. Working on a fix, i opted to upgrade to v3 of the extensions and v6.0.x of GitVersion.
GitVersion setup behaves entirely as expected but GitVersion increment returns the following:
the extension is configured in my pipeline as:
The repo_name variable refers to the name of my actual repository, this is used as we utilise terraofmr modules which we checkout to a relative path. All checkouts are non shallow.
My GitVersion.yml is configured as:
my repo structure is
Beta Was this translation helpful? Give feedback.
All reactions