GitTools / actions

GitHub Action that installs and uses the GitVersion and GitReleaseManager tools
MIT License
216 stars 62 forks source link

Azure Pipeline Task `gitversion/setup@0` `0.10.0` does not work #815

Closed cdemi closed 1 year ago

cdemi commented 1 year ago

Job Info:

2023-03-11T10:09:11.4076992Z ##[section]Starting: Initialize job
2023-03-11T10:09:11.4078832Z Agent name: 'Hosted Agent'
2023-03-11T10:09:11.4079558Z Agent machine name: 'fv-az366-506'
2023-03-11T10:09:11.4079924Z Current agent version: '2.217.2'
2023-03-11T10:09:11.4120792Z ##[group]Operating System
2023-03-11T10:09:11.4121199Z Ubuntu
2023-03-11T10:09:11.4121498Z 22.04.2
2023-03-11T10:09:11.4121709Z LTS
2023-03-11T10:09:11.4122012Z ##[endgroup]
2023-03-11T10:09:11.4122389Z ##[group]Runner Image
2023-03-11T10:09:11.4122758Z Image: ubuntu-22.04
2023-03-11T10:09:11.4123151Z Version: 20230305.1
2023-03-11T10:09:11.4123565Z Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20230305.1/images/linux/Ubuntu2204-Readme.md
2023-03-11T10:09:11.4124165Z Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20230305.1
2023-03-11T10:09:11.4124572Z ##[endgroup]
2023-03-11T10:09:11.4124807Z ##[group]Runner Image Provisioner
2023-03-11T10:09:11.4125249Z 2.0.117.1
2023-03-11T10:09:11.4125506Z ##[endgroup]
2023-03-11T10:09:11.4126915Z Current image version: '20230305.1'
2023-03-11T10:09:11.4130726Z Agent running as: 'vsts'
2023-03-11T10:09:11.4190457Z Prepare build directory.
2023-03-11T10:09:11.4591200Z Set build variables.
2023-03-11T10:09:11.4627381Z Download all required tasks.
2023-03-11T10:09:11.4759877Z Downloading task: gitversion/setup (0.10.0)
2023-03-11T10:09:12.5118856Z Downloading task: gitversion/execute (0.10.0)
2023-03-11T10:09:12.6213823Z Downloading task: Docker (2.214.0)
2023-03-11T10:09:14.0289651Z Downloading task: CmdLine (2.212.0)
2023-03-11T10:09:14.4004970Z Checking job knob settings.
2023-03-11T10:09:14.4018743Z    Knob: DockerActionRetries = true Source: $(VSTSAGENT_DOCKER_ACTION_RETRIES) 
2023-03-11T10:09:14.4019950Z    Knob: AgentToolsDirectory = /opt/hostedtoolcache Source: ${AGENT_TOOLSDIRECTORY} 
2023-03-11T10:09:14.4021835Z    Knob: AgentPerflog = /home/vsts/perflog Source: ${VSTS_AGENT_PERFLOG} 
2023-03-11T10:09:14.4024832Z    Knob: ContinueAfterCancelProcessTreeKillAttempt = true Source: $(VSTSAGENT_CONTINUE_AFTER_CANCEL_PROCESSTREEKILL_ATTEMPT) 
2023-03-11T10:09:14.4025590Z Finished checking job knob settings.
2023-03-11T10:09:14.4465022Z Start tracking orphan processes.
2023-03-11T10:09:14.4678465Z ##[section]Finishing: Initialize job

gitversion/setup@0:

2023-03-11T10:09:21.2207896Z ##[section]Starting: Install GitVersion
2023-03-11T10:09:21.2218152Z ==============================================================================
2023-03-11T10:09:21.2218501Z Task         : Setup GitVersion Task
2023-03-11T10:09:21.2218682Z Description  : Easy Semantic Versioning (http://semver.org) for projects using Git
2023-03-11T10:09:21.2218967Z Version      : 0.10.0
2023-03-11T10:09:21.2219124Z Author       : GitTools Contributors
2023-03-11T10:09:21.2219319Z Help         : See the [documentation](https://gitversion.net/docs/) for help
2023-03-11T10:09:21.2219579Z ==============================================================================
2023-03-11T10:09:21.7648972Z ##[error]Unhandled: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'
2023-03-11T10:09:21.7691480Z ##[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:09:21.7696761Z /home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:9820
2023-03-11T10:09:21.7697319Z    throw e;
2023-03-11T10:09:21.7697604Z    ^
2023-03-11T10:09:21.7697712Z 
2023-03-11T10:09:21.7698370Z Error: Cannot find module '/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/lib.json'
2023-03-11T10:09:21.7699310Z     at webpackEmptyContext (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:9818:10)
2023-03-11T10:09:21.7700261Z     at _loadLocStrings (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:5821:143)
2023-03-11T10:09:21.7701235Z     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:09:21.7702195Z     at process.<anonymous> (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:6726:42)
2023-03-11T10:09:21.7702818Z     at process.emit (events.js:203:15)
2023-03-11T10:09:21.7703317Z     at process._fatalException (internal/bootstrap/node.js:497:27)
2023-03-11T10:09:21.7943821Z ##[error]Exit code 7 returned from process: file name '/home/vsts/agents/2.217.2/externals/node10/bin/node', arguments '"/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js"'.
2023-03-11T10:09:21.7957361Z ##[section]Finishing: Install GitVersion
rooch84 commented 1 year ago

I can confirm that I'm having the same issue as of this morning.

RobbieLD commented 1 year ago

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

arturcic commented 1 year ago

I will have a look and test it myself

gwendallg commented 1 year ago

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. (/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js:6726:42) 2023-03-11T10:42:52.9267583Z at process.emit (events.js:203:15) 2023-03-11T10:42:52.9268058Z at process._fatalException (internal/bootstrap/node.js:497:27) 2023-03-11T10:42:52.9664344Z ##[error]Exit code 7 returned from process: file name '/home/vsts/agents/2.217.2/externals/node10/bin/node', arguments '"/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js"'. 2023-03-11T10:42:52.9697217Z ##[debug]Microsoft.VisualStudio.Services.Agent.Util.ProcessExitCodeException: Exit code 7 returned from process: file name '/home/vsts/agents/2.217.2/externals/node10/bin/node', arguments '"/home/vsts/work/_tasks/gitversion/setup_a06c02ae-7b9a-4082-90dc-fe27b500e54f/0.10.0/bundle.js"'. at Microsoft.VisualStudio.Services.Agent.Util.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, InputQueue1 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, InputQueue1 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

arturcic commented 1 year ago

Ok I can confirm, I will check the issue, for now it's not needed to confirm anymore

RobbieLD commented 1 year ago

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.

brunobertechini commented 1 year ago

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)

Ravemba commented 1 year ago

The same issue

arturcic commented 1 year ago

I will revert the changes and release a new version

RobbieLD commented 1 year ago

Version 0.10.1 still broken

image

arturcic commented 1 year ago

Then it needs more investigation, and a way to test it before publishing a new version

grassgit commented 1 year ago

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

arturcic commented 1 year ago

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

arturcic commented 1 year ago

so basically you pin to a specific version

arturcic commented 1 year ago

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

cmonzon44 commented 1 year ago

same issue.
rollback to 0.9.15 and Azure pipelines still working

arturcic commented 1 year ago

version 0.10.2 published, please give it a try

gwendallg commented 1 year ago

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

michelefa1988 commented 1 year ago

It worked, thanks for the fast update

arturcic commented 1 year ago

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

cdemi commented 1 year ago

Thanks for fixing this and for maintaining this project!

arp-mbender commented 1 year ago

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
cdemi commented 1 year ago

Looks like you are still using Version : 0.10.0

arturcic commented 1 year ago

you're using 0.10.0, please download 0.10.2

arp-mbender commented 1 year ago

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? image

cdemi commented 1 year ago

Did you "Re-run failed jobs" instead of starting a new build? Try starting a new build instead of re-running the failed one

arturcic commented 1 year ago

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? image

Maybe the server has a schedule when it checks for new versions, maybe you can download and install it manually

arp-mbender commented 1 year ago

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.

brunobertechini commented 1 year ago

Re-running will use the old/previous version. You need to run a new pipeline. It is working now! Thank you

arp-mbender commented 1 year ago

I just saw my DevOps server updated the extension, and it's working fine now. :)

RobbieLD commented 1 year ago

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.