Closed cdemi closed 1 year ago
I can confirm that I'm having the same issue as of this morning.
Confirming this. Looks like the azure agents don't have version 0.10.0 installed on them. Seems like there isn't a way to force it to use the previous working version of 0.9.15
I will have a look and test it myself
Confirming this.
2023-03-11T10:42:52.6681398Z ##[debug]Evaluating condition for step: 'Install GitVersion 5.8.1'
2023-03-11T10:42:52.6683897Z ##[debug]Evaluating: SucceededNode()
2023-03-11T10:42:52.6684525Z ##[debug]Evaluating SucceededNode:
2023-03-11T10:42:52.6686238Z ##[debug]=> True
2023-03-11T10:42:52.6686830Z ##[debug]Result: True
2023-03-11T10:42:52.6687437Z ##[section]Starting: Install GitVersion 5.8.1
2023-03-11T10:42:52.6694849Z ==============================================================================
2023-03-11T10:42:52.6695114Z Task : Setup GitVersion Task
2023-03-11T10:42:52.6695334Z Description : Easy Semantic Versioning (http://semver.org) for projects using Git
2023-03-11T10:42:52.6695574Z Version : 0.10.0
2023-03-11T10:42:52.6695714Z Author : GitTools Contributors
2023-03-11T10:42:52.6695944Z Help : See the documentation for help
2023-03-11T10:42:52.6696173Z ==============================================================================
2023-03-11T10:42:52.7206671Z ##[debug]Using node path: /home/vsts/agents/2.217.2/externals/node10/bin/node
2023-03-11T10:42:52.9033634Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp
2023-03-11T10:42:52.9050620Z ##[debug]loading inputs and endpoints
2023-03-11T10:42:52.9052702Z ##[debug]loading INPUT_VERSIONSPEC
2023-03-11T10:42:52.9065778Z ##[debug]loading INPUT_INCLUDEPRERELEASE
2023-03-11T10:42:52.9067908Z ##[debug]loading INPUT_IGNOREFAILEDSOURCES
2023-03-11T10:42:52.9070527Z ##[debug]loading INPUT_PREFERLATESTVERSION
2023-03-11T10:42:52.9072114Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION
2023-03-11T10:42:52.9073691Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION
2023-03-11T10:42:52.9074467Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN
2023-03-11T10:42:52.9079369Z ##[debug]loading SECRET_MONPFXCERTIFICATEPASSWORD
2023-03-11T10:42:52.9083611Z ##[debug]loading SECRET_MONARMTENANTID
2023-03-11T10:42:52.9085910Z ##[debug]loading SECRET_MONTFSTORAGEACCOUNTKEY
2023-03-11T10:42:52.9087478Z ##[debug]loading SECRET_MONARMSUBSCRIPTIONID
2023-03-11T10:42:52.9088182Z ##[debug]loading SECRET_MONARMCLIENTID
2023-03-11T10:42:52.9088898Z ##[debug]loading SECRET_MONTFSTORAGEACCOUNTNAME
2023-03-11T10:42:52.9089700Z ##[debug]loading SECRET_MONARMCLIENTSECRET
2023-03-11T10:42:52.9090502Z ##[debug]loading SECRET_FEEDPERSONALACCESSTOKEN
2023-03-11T10:42:52.9093407Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN
2023-03-11T10:42:52.9094242Z ##[debug]loaded 16
2023-03-11T10:42:52.9094986Z ##[debug]Agent.ProxyUrl=undefined
2023-03-11T10:42:52.9095687Z ##[debug]Agent.CAInfo=undefined
2023-03-11T10:42:52.9096428Z ##[debug]Agent.ClientCert=undefined
2023-03-11T10:42:52.9097189Z ##[debug]Agent.SkipCertValidation=undefined
2023-03-11T10:42:52.9155264Z ##[debug]Agent.ProxyUrl=undefined
2023-03-11T10:42:52.9156094Z ##[debug]Agent.CAInfo=undefined
2023-03-11T10:42:52.9158185Z ##[debug]Agent.ClientCert=undefined
2023-03-11T10:42:52.9159716Z ##[debug]check path : /home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json
2023-03-11T10:42:52.9160983Z ##[debug]adding resource file: /home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json
2023-03-11T10:42:52.9162050Z ##[debug]system.culture=en-US
2023-03-11T10:42:52.9182410Z ##[debug]task result: Failed
2023-03-11T10:42:52.9231644Z ##[error]Unhandled: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'
2023-03-11T10:42:52.9240861Z ##[debug]Processed: ##vso[task.issue type=error;]Unhandled: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'
2023-03-11T10:42:52.9243715Z ##[debug]Processed: ##vso[task.complete result=Failed;]Unhandled: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'
2023-03-11T10:42:52.9250924Z ##[error]Error: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'
at webpackEmptyContext (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:9818:10)
at _loadLocStrings (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5821:143)
at Object._setResourcePath [as setResourcePath] (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5876:23)
at Object../node_modules/azure-pipelines-tool-lib/tool.js (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:11453:4)
at webpack_require (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:33565:42)
at Module../src/agent/azure/build-agent.ts (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:31568:87)
at webpack_require (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:33565:42)
at Module../src/core/ioc.ts (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:31853:81)
at webpack_require__ (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:33565:42)
at Module../src/tasks/gitversion/main.ts (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:31982:67)
2023-03-11T10:42:52.9257659Z ##[debug]Processed: ##vso[task.issue type=error;]Error: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'%0A at webpackEmptyContext (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:9818:10)%0A at _loadLocStrings (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5821:143)%0A at Object._setResourcePath [as setResourcePath] (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5876:23)%0A at Object../node_modules/azure-pipelines-tool-lib/tool.js (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:11453:4)%0A at webpack_require (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:33565:42)%0A at Module../src/agent/azure/build-agent.ts (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:31568:87)%0A at webpack_require (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:33565:42)%0A at Module../src/core/ioc.ts (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:31853:81)%0A at webpack_require__ (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:33565:42)%0A at Module../src/tasks/gitversion/main.ts (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:31982:67)
2023-03-11T10:42:52.9261846Z /home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:9820
2023-03-11T10:42:52.9262334Z throw e;
2023-03-11T10:42:52.9262608Z ^
2023-03-11T10:42:52.9262705Z
2023-03-11T10:42:52.9263356Z Error: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'
2023-03-11T10:42:52.9264238Z at webpackEmptyContext (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:9818:10)
2023-03-11T10:42:52.9265088Z at _loadLocStrings (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5821:143)
2023-03-11T10:42:52.9265999Z at Object._loc [as loc] (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5907:26)
2023-03-11T10:42:52.9266894Z at process.2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue
1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, Boolean continueAfterCancelProcessTreeKillAttempt, CancellationToken cancellationToken) in /home/vsts/work/1/s/src/Agent.Sdk/ProcessInvoker.cs:line 376
at Microsoft.VisualStudio.Services.Agent.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue
1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, Boolean continueAfterCancelProcessTreeKillAttempt, CancellationToken cancellationToken) in /home/vsts/work/1/s/src/Microsoft.VisualStudio.Services.Agent/ProcessInvoker.cs:line 308
at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.DefaultStepHost.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, Boolean continueAfterCancelProcessTreeKillAttempt, CancellationToken cancellationToken) in /home/vsts/work/1/s/src/Agent.Worker/Handlers/StepHost.cs:line 76
at Microsoft.VisualStudio.Services.Agent.Worker.Handlers.NodeHandler.RunAsync() in /home/vsts/work/1/s/src/Agent.Worker/Handlers/NodeHandler.cs:line 207
at Microsoft.VisualStudio.Services.Agent.Worker.TaskRunner.RunAsync() in /home/vsts/work/1/s/src/Agent.Worker/TaskRunner.cs:line 409
at Microsoft.VisualStudio.Services.Agent.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken) in /home/vsts/work/1/s/src/Agent.Worker/StepsRunner.cs:line 223
2023-03-11T10:42:52.9702999Z ##[section]Finishing: Install GitVersion 5.8.1
Ok I can confirm, I will check the issue, for now it's not needed to confirm anymore
Ok I can confirm, I will check the issue, for now it's not needed to confirm anymore
Is it possible to specify and older version in our pipeline some how. This is now blocking a high priority release.
I am facing the same issue after Azure DevOps automatically updated the GitTools extension to the latest version (11th of March 5:36 am UTC)
The same issue
I will revert the changes and release a new version
Version 0.10.1 still broken
Then it needs more investigation, and a way to test it before publishing a new version
As a work around you can modify your pipeline to specify the task version to download:
- task: gitversion/setup@0.9.15
and
- task: gitversion/execute@0.9.15
As a work around you can modify your pipeline to specify the task version to download:
- task: gitversion/setup@0.9.15
and- task: gitversion/execute@0.9.15
That is correct, I forgot about this
so basically you pin to a specific version
Meanwhile I found the source of the issue - azure-pipelines-task-lib
was updated and it seems it broke the extension. So I reverted to a version that was at the time of v0.9.15
version and it seems to work locally. I will publish a new version v0.10.2
soon
same issue.
rollback to 0.9.15 and Azure pipelines still working
version 0.10.2 published, please give it a try
it'ok
2023-03-11T13:19:06.8744480Z ##[debug]Evaluating condition for step: 'Install GitVersion 5.8.1' 2023-03-11T13:19:06.8745945Z ##[debug]Evaluating: SucceededNode() 2023-03-11T13:19:06.8746389Z ##[debug]Evaluating SucceededNode: 2023-03-11T13:19:06.8747123Z ##[debug]=> True 2023-03-11T13:19:06.8747563Z ##[debug]Result: True 2023-03-11T13:19:06.8748024Z ##[section]Starting: Install GitVersion 5.8.1 2023-03-11T13:19:06.8753663Z ============================================================================== 2023-03-11T13:19:06.8753929Z Task : Setup GitVersion Task 2023-03-11T13:19:06.8754081Z Description : Easy Semantic Versioning (http://semver.org) for projects using Git 2023-03-11T13:19:06.8754327Z Version : 0.10.2 2023-03-11T13:19:06.8754456Z Author : GitTools Contributors 2023-03-11T13:19:06.8754626Z Help : See the documentation for help 2023-03-11T13:19:06.8754841Z ============================================================================== 2023-03-11T13:19:07.0099678Z ##[debug]Using node path: /home/vsts/agents/2.217.2/externals/node10/bin/node 2023-03-11T13:19:07.3399025Z ##[debug]agent.TempDirectory=/home/vsts/work/_temp 2023-03-11T13:19:07.3410024Z ##[debug]loading inputs and endpoints 2023-03-11T13:19:07.3412873Z ##[debug]loading INPUT_VERSIONSPEC 2023-03-11T13:19:07.3432468Z ##[debug]loading INPUT_INCLUDEPRERELEASE 2023-03-11T13:19:07.3434798Z ##[debug]loading INPUT_IGNOREFAILEDSOURCES 2023-03-11T13:19:07.3435447Z ##[debug]loading INPUT_PREFERLATESTVERSION 2023-03-11T13:19:07.3436119Z ##[debug]loading ENDPOINT_AUTH_SYSTEMVSSCONNECTION 2023-03-11T13:19:07.3436789Z ##[debug]loading ENDPOINT_AUTH_SCHEME_SYSTEMVSSCONNECTION 2023-03-11T13:19:07.3437529Z ##[debug]loading ENDPOINT_AUTH_PARAMETER_SYSTEMVSSCONNECTION_ACCESSTOKEN 2023-03-11T13:19:07.3439102Z ##[debug]loading SECRET_FEEDPERSONALACCESSTOKEN 2023-03-11T13:19:07.3441388Z ##[debug]loading SECRET_SYSTEM_ACCESSTOKEN 2023-03-11T13:19:07.3442004Z ##[debug]loaded 9 2023-03-11T13:19:07.3448225Z ##[debug]Agent.ProxyUrl=undefined 2023-03-11T13:19:07.3448908Z ##[debug]Agent.CAInfo=undefined 2023-03-11T13:19:07.3449495Z ##[debug]Agent.ClientCert=undefined 2023-03-11T13:19:07.3450117Z ##[debug]Agent.SkipCertValidation=undefined 2023-03-11T13:19:07.3473618Z ##[debug]Agent.ProxyUrl=undefined 2023-03-11T13:19:07.3474296Z ##[debug]Agent.CAInfo=undefined 2023-03-11T13:19:07.3474912Z ##[debug]Agent.ClientCert=undefined 2023-03-11T13:19:07.3476213Z ##[debug]check path : /home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.2/lib.json 2023-03-11T13:19:07.3477358Z ##[debug]adding resource file: /home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.2/lib.json 2023-03-11T13:19:07.3478188Z ##[debug]system.culture=en-US 2023-03-11T13:19:07.3523699Z ##[debug]Agent.ProxyUrl=undefined 2023-03-11T13:19:07.3524371Z ##[debug]Agent.CAInfo=undefined 2023-03-11T13:19:07.3525198Z ##[debug]Agent.ClientCert=undefined 2023-03-11T13:19:07.3525819Z ##[debug]Agent.SkipCertValidation=undefined 2023-03-11T13:19:07.3529925Z ##[debug]set DOTNET_CLI_TELEMETRY_OPTOUT=true 2023-03-11T13:19:07.3539741Z ##[debug]Processed: ##vso[task.setvariable variable=DOTNET_CLI_TELEMETRY_OPTOUT;isOutput=false;issecret=false;]true 2023-03-11T13:19:07.3541695Z ##[debug]set DOTNET_NOLOGO=true 2023-03-11T13:19:07.3543612Z ##[debug]Processed: ##vso[task.setvariable variable=DOTNET_NOLOGO;isOutput=false;issecret=false;]true 2023-03-11T13:19:07.3546165Z Agent: 'Azure Pipelines' 2023-03-11T13:19:07.3546706Z ##[debug]versionSpec=5.8.1 2023-03-11T13:19:07.3547321Z ##[debug]includePrerelease=false 2023-03-11T13:19:07.3549706Z ##[debug]ignoreFailedSources=false 2023-03-11T13:19:07.3550312Z ##[debug]preferLatestVersion=false 2023-03-11T13:19:07.3550576Z 2023-03-11T13:19:07.3550869Z -------------------------- 2023-03-11T13:19:07.3551188Z Acquiring GitVersion.Tool version spec: 5.8.1 2023-03-11T13:19:07.3551531Z -------------------------- 2023-03-11T13:19:07.3555471Z ##[debug]isExplicit: 5.8.1 2023-03-11T13:19:07.3556052Z ##[debug]explicit? true 2023-03-11T13:19:07.3559746Z ##[debug]isExplicit: 5.8.1 2023-03-11T13:19:07.3560354Z ##[debug]explicit? true 2023-03-11T13:19:07.3564315Z ##[debug]Agent.Version=2.217.2 2023-03-11T13:19:07.3565979Z ##[debug]Agent.ToolsDirectory=/opt/hostedtoolcache 2023-03-11T13:19:07.3566697Z ##[debug]checking cache: /opt/hostedtoolcache/GitVersion.Tool/5.8.1/x64 2023-03-11T13:19:07.3567330Z ##[debug]not found 2023-03-11T13:19:07.3567876Z ##[debug]isExplicit: 5.8.1 2023-03-11T13:19:07.3568431Z ##[debug]explicit? true 2023-03-11T13:19:07.3569048Z ##[debug]Agent.TempDirectory=/home/vsts/work/_temp 2023-03-11T13:19:07.3574503Z ##[debug]cleaning: 5.8.1 2023-03-11T13:19:07.3575157Z Command: dotnet tool install GitVersion.Tool --tool-path /home/vsts/work/_temp --version 5.8.1 2023-03-11T13:19:07.3578190Z ##[debug]which 'dotnet' 2023-03-11T13:19:07.3588479Z ##[debug]found: '/usr/bin/dotnet' 2023-03-11T13:19:07.3589360Z ##[debug]/usr/bin/dotnet arg: ["tool","install","GitVersion.Tool","--tool-path","/home/vsts/work/_temp","--version","5.8.1"] 2023-03-11T13:19:07.3590143Z ##[debug]exec tool: /usr/bin/dotnet 2023-03-11T13:19:07.3591555Z ##[debug]arguments: 2023-03-11T13:19:07.3592100Z ##[debug] tool 2023-03-11T13:19:07.3592625Z ##[debug] install 2023-03-11T13:19:07.3593174Z ##[debug] GitVersion.Tool 2023-03-11T13:19:07.3593855Z ##[debug] --tool-path 2023-03-11T13:19:07.3594424Z ##[debug] /home/vsts/work/_temp 2023-03-11T13:19:07.3595067Z ##[debug] --version 2023-03-11T13:19:07.3595611Z ##[debug] 5.8.1 2023-03-11T13:19:07.3596224Z [command]/usr/bin/dotnet tool install GitVersion.Tool --tool-path /home/vsts/work/_temp --version 5.8.1 2023-03-11T13:19:11.7225089Z You can invoke the tool using the following command: dotnet-gitversion 2023-03-11T13:19:11.7267959Z Tool 'gitversion.tool' (version '5.8.1') was successfully installed. 2023-03-11T13:19:11.7301088Z ##[debug]tool install result: success You can invoke the tool using the following command: dotnet-gitversion Tool 'gitversion.tool' (version '5.8.1') was successfully installed.
2023-03-11T13:19:11.7322744Z Caching tool: GitVersion.Tool 5.8.1 x64 2023-03-11T13:19:11.7331641Z ##[debug]source dir: /home/vsts/work/_temp 2023-03-11T13:19:11.7340663Z ##[debug]Agent.Version=2.217.2 2023-03-11T13:19:11.7367485Z ##[debug]Agent.ToolsDirectory=/opt/hostedtoolcache 2023-03-11T13:19:11.7370216Z ##[debug]destination /opt/hostedtoolcache/GitVersion.Tool/5.8.1/x64 2023-03-11T13:19:11.7373137Z ##[debug]rm -rf /opt/hostedtoolcache/GitVersion.Tool/5.8.1/x64 2023-03-11T13:19:11.7375639Z ##[debug]rm -rf /opt/hostedtoolcache/GitVersion.Tool/5.8.1/x64.complete 2023-03-11T13:19:11.7377880Z ##[debug]testing directory '/opt/hostedtoolcache/GitVersion.Tool/5.8.1/x64' 2023-03-11T13:19:11.7381455Z ##[debug]testing directory '/opt/hostedtoolcache/GitVersion.Tool/5.8.1' 2023-03-11T13:19:11.7383159Z ##[debug]testing directory '/opt/hostedtoolcache/GitVersion.Tool' 2023-03-11T13:19:11.7384824Z ##[debug]testing directory '/opt/hostedtoolcache' 2023-03-11T13:19:11.7386308Z ##[debug]mkdir '/opt/hostedtoolcache/GitVersion.Tool' 2023-03-11T13:19:11.7387909Z ##[debug]mkdir '/opt/hostedtoolcache/GitVersion.Tool/5.8.1' 2023-03-11T13:19:11.7389241Z ##[debug]mkdir '/opt/hostedtoolcache/GitVersion.Tool/5.8.1/x64' 2023-03-11T13:19:11.8367621Z ##[debug]Agent.Version=2.217.2 2023-03-11T13:19:11.8368882Z ##[debug]Agent.ToolsDirectory=/opt/hostedtoolcache 2023-03-11T13:19:11.8385480Z ##[debug]finished caching tool 2023-03-11T13:19:11.8387455Z -------------------------- 2023-03-11T13:19:11.8388158Z GitVersion.Tool version: 5.8.1 installed. 2023-03-11T13:19:11.8388535Z -------------------------- 2023-03-11T13:19:11.8390049Z ##[debug]toolPath: /opt/hostedtoolcache/GitVersion.Tool/5.8.1/x64 2023-03-11T13:19:11.8390724Z ##[debug]DOTNET_ROOT=undefined 2023-03-11T13:19:11.8391783Z ##[debug]which 'dotnet' 2023-03-11T13:19:11.8392440Z ##[debug]found: '/usr/bin/dotnet' 2023-03-11T13:19:11.8393023Z ##[debug]set DOTNET_ROOT=../share/dotnet 2023-03-11T13:19:11.8394384Z ##[debug]Processed: ##vso[task.setvariable variable=DOTNET_ROOT;isOutput=false;issecret=false;]../share/dotnet 2023-03-11T13:19:11.8395364Z ##[debug]Agent.Version=2.217.2 2023-03-11T13:19:11.8395864Z Prepending PATH environment variable with directory: /opt/hostedtoolcache/GitVersion.Tool/5.8.1/x64 2023-03-11T13:19:11.8396936Z ##[debug]new Path: /opt/hostedtoolcache/GitVersion.Tool/5.8.1/x64:/home/vsts/.local/bin:/opt/pipx_bin:/home/vsts/.cargo/bin:/home/vsts/.config/composer/vendor/bin:/usr/local/.ghcup/bin:/home/vsts/.dotnet/tools:/snap/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin 2023-03-11T13:19:11.8401619Z ##[debug]Processed: ##vso[task.prependpath]/opt/hostedtoolcache/GitVersion.Tool/5.8.1/x64 2023-03-11T13:19:11.8402514Z ##[debug]task result: Succeeded 2023-03-11T13:19:11.8412635Z ##[debug]Processed: ##vso[task.complete result=Succeeded;done=true;]GitVersion installed successfully 2023-03-11T13:19:11.8426677Z ##[section]Finishing: Install GitVersion 5.8.1
It worked, thanks for the fast update
Thank you for confirmation, then I can close this one. As a recommendation - pin the task version for your pipelines, and only try the latest version when there is no risk of disturbing the releases
Thanks for fixing this and for maintaining this project!
This new version doesn't seem to work in an on-prem scenario...?
2023-03-11T13:24:32.5293052Z ##[section]Starting: Set run name and parameters
2023-03-11T13:24:32.5824489Z ==============================================================================
2023-03-11T13:24:32.5824865Z Task : Execute GitVersion Task
2023-03-11T13:24:32.5825090Z Description : Easy Semantic Versioning (http://semver.org) for projects using Git
2023-03-11T13:24:32.5825402Z Version : 0.10.0
2023-03-11T13:24:32.5825579Z Author : GitTools Contributors
2023-03-11T13:24:32.5825799Z Help : See the [documentation](https://gitversion.net/docs/) for help
2023-03-11T13:24:32.5826086Z ==============================================================================
2023-03-11T13:24:33.0408838Z ##[error]Unhandled: Cannot find module 'C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\lib.json'
2023-03-11T13:24:33.0423435Z C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:9820
2023-03-11T13:24:33.0424015Z throw e;
2023-03-11T13:24:33.0424311Z ^
2023-03-11T13:24:33.0424408Z
2023-03-11T13:24:33.0424882Z Error: Cannot find module 'C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\lib.json'
2023-03-11T13:24:33.0425700Z at webpackEmptyContext (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:9818:10)
2023-03-11T13:24:33.0426587Z at _loadLocStrings (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:5821:143)
2023-03-11T13:24:33.0427451Z at Object._loc [as loc] (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:5907:26)
2023-03-11T13:24:33.0428328Z at process.<anonymous> (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:6726:42)
2023-03-11T13:24:33.0428962Z at process.emit (events.js:203:15)
2023-03-11T13:24:33.0429417Z at process._fatalException (internal/bootstrap/node.js:497:27)
2023-03-11T13:24:33.0446726Z ##[error]Error: Cannot find module 'C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\lib.json'
at webpackEmptyContext (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:9818:10)
at _loadLocStrings (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:5821:143)
at Object._setResourcePath [as setResourcePath] (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:5876:23)
at Object../node_modules/azure-pipelines-tool-lib/tool.js (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:11453:4)
at __webpack_require__ (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:33565:42)
at Module../src/agent/azure/build-agent.ts (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:31568:87)
at __webpack_require__ (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:33565:42)
at Module../src/core/ioc.ts (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:31853:81)
at __webpack_require__ (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:33565:42)
at Module../src/tasks/gitversion/main.ts (C:\azp\agent\_work\_tasks\gitversion\execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js:32003:67)
2023-03-11T13:24:33.1078654Z ##[error]Exit code 7 returned from process: file name 'C:\azp\agent\externals\node10\bin\node.exe', arguments '"C:\azp\agent\_work\_tasks\gitversion/execute_9013cf7f-ee8d-49f4-a39b-db244928d391\0.10.0\bundle.js"'.
2023-03-11T13:24:33.1085857Z ##[section]Finishing: Set run name and parameters
Looks like you are still using Version : 0.10.0
you're using 0.10.0
, please download 0.10.2
Looks like you are still using
Version : 0.10.0
Good point - hmm... wonder why it didn't auto-update. 🤔
Edit:
It seems the GitTools extension hasn't been updated yet?
Did you "Re-run failed jobs" instead of starting a new build? Try starting a new build instead of re-running the failed one
Looks like you are still using
Version : 0.10.0
Good point - hmm... wonder why it didn't auto-update. 🤔
Edit: It seems the GitTools extension hasn't been updated yet?
Maybe the server has a schedule when it checks for new versions, maybe you can download and install it manually
Did you "Re-run failed jobs" instead of starting a new build? Try starting a new build instead of re-running the failed one
I did. But I as is I figured it's not critical and I can wait till Monday. Hopefully whatever caching / scheduling issue might be responsible for the current version being "frozen" will get resolved by then.
Re-running will use the old/previous version. You need to run a new pipeline. It is working now! Thank you
I just saw my DevOps server updated the extension, and it's working fine now. :)
I'm getting a very strange error "network socket disconnected before secure TLS connection was established" when it tries to install version 0.10.2. The old version 0.9.15 doesn't give this.
Job Info:
gitversion/setup@0: