azure-pipelines-tasks: [BUG]: AppCenter Distribute task failed after latest release - 20 04
Task name
AppCenterDistribute Task V3
Task version
3.221.1
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
Azure DevOps Server (Please specify exact version in the textbox below)
Azure DevOps Server Version (if applicable)
2017
Operation system
Mac/Windows
Task log
2023-04-20T13:54:43.1060550Z ##[debug]Evaluating condition for step: 'Distribute to Visual Studio App Center - Dev'
2023-04-20T13:54:43.1075620Z ##[debug]Evaluating: succeeded()
2023-04-20T13:54:43.1077240Z ##[debug]Evaluating succeeded:
2023-04-20T13:54:43.1082620Z ##[debug]=> True
2023-04-20T13:54:43.1086280Z ##[debug]Result: True
2023-04-20T13:54:43.1087830Z ##[section]Starting: Distribute to Visual Studio App Center - Dev
2023-04-20T13:54:43.1240300Z ==============================================================================
2023-04-20T13:54:43.1240700Z Task : App Center distribute
2023-04-20T13:54:43.1240930Z Description : Distribute app builds to testers and users via Visual Studio App Center
2023-04-20T13:54:43.1241270Z Version : 3.221.1
2023-04-20T13:54:43.1241310Z Author : Microsoft Corporation
2023-04-20T13:54:43.1241350Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/app-center-distribute
2023-04-20T13:54:43.1241380Z ==============================================================================
2023-04-20T13:54:43.7481830Z ##[error]/Users/admin/myagent/_work/_tasks/AppCenterDistribute_71ef4996-b8d7-410d-8604-65030b29b134/3.221.1/node_modules/@azure/storage-blob/dist/index.js:13909
async function delay(timeInMs, aborter, abortError) {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/admin/myagent/_work/_tasks/AppCenterDistribute_71ef4996-b8d7-410d-8604-65030b29b134/3.221.1/azure-blob-upload-helper.js:13:24)
2023-04-20T13:54:43.7482880Z ##[debug]Processed: ##vso[task.issue type=error;]/Users/admin/myagent/_work/_tasks/AppCenterDistribute_71ef4996-b8d7-410d-8604-65030b29b134/3.221.1/node_modules/@azure/storage-blob/dist/index.js:13909%0Aasync function delay(timeInMs, aborter, abortError) {%0A ^^^^^^^^%0ASyntaxError: Unexpected token function%0A at createScript (vm.js:56:10)%0A at Object.runInThisContext (vm.js:97:10)%0A at Module._compile (module.js:542:28)%0A at Object.Module._extensions..js (module.js:579:10)%0A at Module.load (module.js:487:32)%0A at tryModuleLoad (module.js:446:12)%0A at Function.Module._load (module.js:438:3)%0A at Module.require (module.js:497:17)%0A at require (internal/module.js:20:19)%0A at Object.<anonymous> (/Users/admin/myagent/_work/_tasks/AppCenterDistribute_71ef4996-b8d7-410d-8604-65030b29b134/3.221.1/azure-blob-upload-helper.js:13:24)
2023-04-20T13:54:43.7605580Z ##[section]Finishing: Distribute to Visual Studio App Center - Dev
Relevant log output
async function delay(timeInMs, aborter, abortError) {
^^^^^^^^
SyntaxError: Unexpected token function
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/admin/myagent/_work/_tasks/AppCenterDistribute_71ef4996-b8d7-410d-8604-65030b29b134/3.221.1/azure-blob-upload-helper.js:13:24)
Aditional info
No response
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 25 (8 by maintainers)
Fix does not work for DevOps 2019/2020
Thank you @vbtrek for confirmation - I close the issue as fixed.
We need some time to reproduce this behaviour on the specific agent versions, I will keep this issue updated
We’re also seeing the same error that @jjnanthakumar is seeing with our DevOps 2019 self hosted build agents: Unhandled: globalThis is not defined
Hello, facing a new issue.
@Oleg-Karoza Should it auto pull down .4? I just ran and .3 was downloaded so same issue.