microsoft / navcontainerhelper

Official Microsoft repository for BcContainerHelper, a PowerShell module, which makes it easier to work with Business Central Containers on Docker.
MIT License
382 stars 246 forks source link

RunAlPipeline: Sort-AppFilesByDependencies, Item has already been added. #2600

Closed TKapitan closed 2 years ago

TKapitan commented 2 years ago

Describe the issue RunAlPipeline ends with error "Item has already been added". I can not see any reason why it works with one dependency but once I add "f56970b9-9ab0-4f05-8e07-e64392f3c2f7" it fails with this error.

I spend a few hours trying to identify where's the problem, but found nothing...

Full output of scripts

2022-07-20T14:53:31.6977242Z ##[section]Starting: Run Pipeline
2022-07-20T14:53:31.7124625Z ==============================================================================
2022-07-20T14:53:31.7125324Z Task         : PowerShell
2022-07-20T14:53:31.7125945Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2022-07-20T14:53:31.7126519Z Version      : 2.200.0
2022-07-20T14:53:31.7126979Z Author       : Microsoft Corporation
2022-07-20T14:53:31.7127803Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2022-07-20T14:53:31.7128685Z ==============================================================================
2022-07-20T14:53:33.1670410Z Generating script.
2022-07-20T14:53:33.1785247Z Formatted command: . 'C:\devOpsAgents\agent01\_work\1\s\scripts\DevOps-Pipeline.ps1' -environment "AzureDevOps" -version "ci" -appBuild 625 -appRevision 0
2022-07-20T14:53:33.3294437Z ========================== Starting Command Output ===========================
2022-07-20T14:53:33.3769979Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\devOpsAgents\agent01\_work\_temp\fda76c8c-381a-486c-be4b-9811b298f4ea.ps1'"
2022-07-20T14:53:33.7371317Z 
2022-07-20T14:53:33.7386840Z Id     Name            PSJobTypeName   State         HasMoreData     Location             Command                  
2022-07-20T14:53:33.7399301Z --     ----            -------------   -----         -----------     --------             -------                  
2022-07-20T14:53:33.7411394Z 1      164bc4d8-c13...                 NotStarted    False                                ...                      
2022-07-20T14:53:33.9299129Z Set artifact = /{CIARTIFACTTYPE}/{CIARTIFACTVERSION}/{COUNTRY}
2022-07-20T14:53:33.9387206Z Set pipelineName = CU-ORI-ci
2022-07-20T14:53:33.9458706Z Set containerName = devsrv0101-cu-ori-ci
2022-07-20T14:53:33.9766233Z Set TKApublishAppFile = '\\srvts\BCAPPS\'
2022-07-20T14:53:33.9812609Z Set TKAsourceAppAppJsonFileLocation = '../App/app.json'
2022-07-20T14:53:33.9859751Z Set TKAsourceTestAppJsonFileLocation = '../Test/app.json'
2022-07-20T14:53:33.9906320Z Set country = 'cz'
2022-07-20T14:53:33.9953100Z Set installApps = '\\srvts\BCAPPS\apps\AE056_2.0.0.0.app'
2022-07-20T14:53:34.0024033Z Set installTestApps = '\\srvts\BCAPPS\tests\TEST-W1_1.0.0.0.app,\\srvts\BCAPPS\tests\TEST-CZ_1.0.0.0.app'
2022-07-20T14:53:34.0079385Z Set licenseFile = '\\srvts\BCAPPS\_config\CurrentDEVlicense.flf'
2022-07-20T14:53:34.0139069Z Set previousApps = ''
2022-07-20T14:53:34.0185956Z Set appSourceCopMandatoryAffixes = 'ART CU ,ART_CU_'
2022-07-20T14:53:34.0234498Z Set appSourceCopSupportedCountries = 'cz'
2022-07-20T14:53:34.0284868Z Set appFolders = 'App'
2022-07-20T14:53:34.0327709Z Set testFolders = 'Test'
2022-07-20T14:53:34.0373586Z Set memoryLimit = '6G'
2022-07-20T14:53:34.0419026Z Set additionalCountries = ''
2022-07-20T14:53:34.0435341Z Set genericImageName = ''
2022-07-20T14:53:34.0484999Z Set vaultNameForLocal = 'BuildVariables'
2022-07-20T14:53:34.0531687Z Set bcContainerHelperVersion = ''
2022-07-20T14:53:34.0575399Z Set failOn = 'warning'
2022-07-20T14:53:34.0649382Z Set installTestRunner = True
2022-07-20T14:53:34.0723429Z Set installTestFramework = True
2022-07-20T14:53:34.0776876Z Set installTestLibraries = True
2022-07-20T14:53:34.0828295Z Set installPerformanceToolkit = True
2022-07-20T14:53:34.0878714Z Set enableCodeCop = True
2022-07-20T14:53:34.0932567Z Set enableAppSourceCop = True
2022-07-20T14:53:34.0981810Z Set enablePerTenantExtensionCop = True
2022-07-20T14:53:34.1032976Z Set enableUICop = True
2022-07-20T14:53:34.1086425Z Set doNotSignApps = True
2022-07-20T14:53:34.1105210Z Set doNotRunTests = False
2022-07-20T14:53:34.1121700Z Set cacheImage = False
2022-07-20T14:53:34.1175837Z Set CreateRuntimePackages = True
2022-07-20T14:53:34.9786645Z BcContainerHelper version 3.0.11
2022-07-20T14:53:35.1726766Z BcContainerHelper emits usage statistics telemetry to Microsoft
2022-07-20T14:53:36.5261089Z Determining onprem artifact cz, OnPrem, 20.1
2022-07-20T14:53:38.3043530Z Accessing /onprem/20.1.39764.39901/cz
2022-07-20T14:53:38.3152942Z Identifying App dependencies...
2022-07-20T14:53:38.3164675Z Looking for  C:\devOpsAgents\agent01\_work\1\s\scripts\..\App\app.json
2022-07-20T14:53:38.3351737Z Trying to load json file: C:\devOpsAgents\agent01\_work\1\s\scripts\..\App\app.json
2022-07-20T14:53:38.3439104Z App.json found for C:\devOpsAgents\agent01\_work\1\s\scripts\..\App\app.json
2022-07-20T14:53:38.3620661Z Path: \\srvts\BCAPPS\ , id: e476c379-5976-4362-8889-77e6c19f6699 , version: 2.0.0.0
2022-07-20T14:53:38.3905413Z Requested version of e476c379-5976-4362-8889-77e6c19f6699 is 2.0.0.0
2022-07-20T14:53:38.4080570Z Used version of e476c379-5976-4362-8889-77e6c19f6699 is 2.0.0.0
2022-07-20T14:53:38.4112261Z Trying to load json file: \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.json
2022-07-20T14:53:38.4158131Z App.json found for \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.json
2022-07-20T14:53:38.4180154Z Checking exlude extension ID: e476c379-5976-4362-8889-77e6c19f6699 and 
2022-07-20T14:53:38.4237490Z Path: \\srvts\BCAPPS\ , id: f56970b9-9ab0-4f05-8e07-e64392f3c2f7 , version: 1.0.0.0
2022-07-20T14:53:38.4267693Z Requested version of f56970b9-9ab0-4f05-8e07-e64392f3c2f7 is 1.0.0.0
2022-07-20T14:53:38.4304016Z Used version of f56970b9-9ab0-4f05-8e07-e64392f3c2f7 is 1.0.0.0
2022-07-20T14:53:38.4334491Z Trying to load json file: \\srvts\BCAPPS\apps\f56970b9-9ab0-4f05-8e07-e64392f3c2f7\1.0.0.0\app.json
2022-07-20T14:53:38.4386751Z App.json found for \\srvts\BCAPPS\apps\f56970b9-9ab0-4f05-8e07-e64392f3c2f7\1.0.0.0\app.json
2022-07-20T14:53:38.4397431Z Checking exlude extension ID: f56970b9-9ab0-4f05-8e07-e64392f3c2f7 and 
2022-07-20T14:53:38.4407845Z App dependencies: \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.app,\\srvts\BCAPPS\apps\f56970b9-9ab0-4f05-8e07-e64392f3c2f7\1.0.0.0\app.app
2022-07-20T14:53:38.4415455Z Identifying Test dependencies...
2022-07-20T14:53:38.4426572Z Looking for  C:\devOpsAgents\agent01\_work\1\s\scripts\..\Test\app.json
2022-07-20T14:53:38.4441181Z Trying to load json file: C:\devOpsAgents\agent01\_work\1\s\scripts\..\Test\app.json
2022-07-20T14:53:38.4487737Z App.json found for C:\devOpsAgents\agent01\_work\1\s\scripts\..\Test\app.json
2022-07-20T14:53:38.4498726Z Path: \\srvts\BCAPPS\ , id: ab17c9d9-656f-491c-9001-443df58174b0 , version: 1.0.0.0
2022-07-20T14:53:38.4534197Z Requested version of ab17c9d9-656f-491c-9001-443df58174b0 is 1.0.0.0
2022-07-20T14:53:38.4581990Z Used version of ab17c9d9-656f-491c-9001-443df58174b0 is 1.0.624.0
2022-07-20T14:53:38.4614434Z Trying to load json file: \\srvts\BCAPPS\apps\ab17c9d9-656f-491c-9001-443df58174b0\1.0.624.0\app.json
2022-07-20T14:53:38.4673712Z App.json found for \\srvts\BCAPPS\apps\ab17c9d9-656f-491c-9001-443df58174b0\1.0.624.0\app.json
2022-07-20T14:53:38.4684083Z Path: \\srvts\BCAPPS\ , id: e476c379-5976-4362-8889-77e6c19f6699 , version: 2.0.0.0
2022-07-20T14:53:38.4701846Z Requested version of e476c379-5976-4362-8889-77e6c19f6699 is 2.0.0.0
2022-07-20T14:53:38.4723812Z Used version of e476c379-5976-4362-8889-77e6c19f6699 is 2.0.0.0
2022-07-20T14:53:38.4740351Z Trying to load json file: \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.json
2022-07-20T14:53:38.5275422Z App.json found for \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.json
2022-07-20T14:53:38.5298536Z Checking exlude extension ID: e476c379-5976-4362-8889-77e6c19f6699 and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-20T14:53:38.5307552Z Checking exlude extension ID: ab17c9d9-656f-491c-9001-443df58174b0 and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-20T14:53:38.5335471Z Path: \\srvts\BCAPPS\ , id: e476c379-5976-4362-8889-77e6c19f6699 , version: 2.0.0.0
2022-07-20T14:53:38.5343905Z Requested version of e476c379-5976-4362-8889-77e6c19f6699 is 2.0.0.0
2022-07-20T14:53:38.5353623Z Used version of e476c379-5976-4362-8889-77e6c19f6699 is 2.0.0.0
2022-07-20T14:53:38.5371272Z Trying to load json file: \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.json
2022-07-20T14:53:38.5472795Z App.json found for \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.json
2022-07-20T14:53:38.5482706Z Checking exlude extension ID: e476c379-5976-4362-8889-77e6c19f6699 and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-20T14:53:38.5494146Z Path: \\srvts\BCAPPS\ , id: b106bd07-f498-439c-a067-318c2524fbca , version: 1.0.0.1
2022-07-20T14:53:38.5525166Z Requested version of b106bd07-f498-439c-a067-318c2524fbca is 1.0.0.1
2022-07-20T14:53:38.5567831Z Used version of b106bd07-f498-439c-a067-318c2524fbca is 1.0.0.1
2022-07-20T14:53:38.5598517Z Trying to load json file: \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.json
2022-07-20T14:53:38.5657006Z App.json found for \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.json
2022-07-20T14:53:38.5670122Z Checking exlude extension ID: b106bd07-f498-439c-a067-318c2524fbca and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-20T14:53:38.5681657Z Path: \\srvts\BCAPPS\ , id: b106bd07-f498-439c-a067-318c2524fbcb , version: 1.0.0.0
2022-07-20T14:53:38.5704235Z Requested version of b106bd07-f498-439c-a067-318c2524fbcb is 1.0.0.0
2022-07-20T14:53:38.5757822Z Used version of b106bd07-f498-439c-a067-318c2524fbcb is 1.0.0.0
2022-07-20T14:53:38.5793261Z Trying to load json file: \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbcb\1.0.0.0\app.json
2022-07-20T14:53:38.5860511Z App.json found for \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbcb\1.0.0.0\app.json
2022-07-20T14:53:38.5871046Z Path: \\srvts\BCAPPS\ , id: b106bd07-f498-439c-a067-318c2524fbca , version: 1.0.0.0
2022-07-20T14:53:38.5888636Z Requested version of b106bd07-f498-439c-a067-318c2524fbca is 1.0.0.0
2022-07-20T14:53:38.5910233Z Used version of b106bd07-f498-439c-a067-318c2524fbca is 1.0.0.1
2022-07-20T14:53:38.5928143Z Trying to load json file: \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.json
2022-07-20T14:53:38.6004504Z App.json found for \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.json
2022-07-20T14:53:38.6014034Z Checking exlude extension ID: b106bd07-f498-439c-a067-318c2524fbca and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-20T14:53:38.6025286Z Checking exlude extension ID: b106bd07-f498-439c-a067-318c2524fbcb and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-20T14:53:38.6038472Z Test dependencies: \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.app,\\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.app,\\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbcb\1.0.0.0\app.app
2022-07-20T14:53:38.8363800Z Determining artifacts to use
2022-07-20T14:53:38.9006764Z   _____                               _                
2022-07-20T14:53:38.9007670Z  |  __ \                             | |               
2022-07-20T14:53:38.9015966Z  | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
2022-07-20T14:53:38.9027472Z  |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2022-07-20T14:53:38.9039172Z  | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
2022-07-20T14:53:38.9054914Z  |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/
2022-07-20T14:53:38.9060126Z 
2022-07-20T14:53:38.9070340Z Pipeline name               CU-ORI-ci
2022-07-20T14:53:38.9080442Z Container name              devsrv0101-cu-ori-ci
2022-07-20T14:53:38.9089250Z Image name                  
2022-07-20T14:53:38.9097562Z ArtifactUrl                 https://bcartifacts.azureedge.net/onprem/20.1.39764.39901/cz
2022-07-20T14:53:38.9106395Z SasToken                    Not Specified
2022-07-20T14:53:38.9121153Z BcAuthContext               Not Specified
2022-07-20T14:53:38.9138800Z Environment                 
2022-07-20T14:53:38.9157338Z ReUseContainer              False
2022-07-20T14:53:38.9175929Z KeepContainer               False
2022-07-20T14:53:38.9194021Z Auth                        UserPassword
2022-07-20T14:53:38.9236425Z Credential                  Specified
2022-07-20T14:53:38.9251449Z CompanyName                     
2022-07-20T14:53:38.9268372Z MemoryLimit                     6G
2022-07-20T14:53:38.9287403Z Enable Task Scheduler           False
2022-07-20T14:53:38.9305754Z Assign Premium Plan             False
2022-07-20T14:53:38.9323977Z Install Test Runner             True
2022-07-20T14:53:38.9343008Z Install Test Framework          True
2022-07-20T14:53:38.9362038Z Install Test Libraries          True
2022-07-20T14:53:38.9382895Z Install Perf. Toolkit           True
2022-07-20T14:53:38.9402197Z InstallOnlyReferencedApps       False
2022-07-20T14:53:38.9420340Z generateDependencyArtifact      False
2022-07-20T14:53:38.9439833Z CopySymbolsFromContainer        False
2022-07-20T14:53:38.9456965Z enableCodeCop                   True
2022-07-20T14:53:38.9475622Z enableAppSourceCop              True
2022-07-20T14:53:38.9494055Z enableUICop                     True
2022-07-20T14:53:38.9512771Z enablePerTenantExtensionCop     True
2022-07-20T14:53:38.9532767Z doNotPerformUpgrade             False
2022-07-20T14:53:38.9551658Z doNotPublishApps                False
2022-07-20T14:53:38.9571240Z uninstallRemovedApps            False
2022-07-20T14:53:38.9586947Z escapeFromCops                  False
2022-07-20T14:53:38.9605297Z doNotBuildTests                 False
2022-07-20T14:53:38.9623751Z doNotRunTests                   False
2022-07-20T14:53:38.9643089Z doNotRunBcptTests               False
2022-07-20T14:53:38.9661277Z useDefaultAppSourceRuleSet      False
2022-07-20T14:53:38.9675717Z rulesetFile                     
2022-07-20T14:53:38.9693798Z azureDevOps                     True
2022-07-20T14:53:38.9712243Z gitLab                          False
2022-07-20T14:53:38.9730281Z gitHubActions                   False
2022-07-20T14:53:38.9748728Z License file                    Specified
2022-07-20T14:53:38.9760674Z CodeSignCertPfxFile             Not specified
2022-07-20T14:53:38.9795098Z CodeSignCertPfxPassword         Not specified
2022-07-20T14:53:38.9848056Z CodeSignCertIsSelfSigned        False
2022-07-20T14:53:38.9859972Z KeyVaultCertPfxFile             Not specified
2022-07-20T14:53:38.9872025Z KeyVaultCertPfxPassword         Not specified
2022-07-20T14:53:38.9889250Z KeyVaultClientId                
2022-07-20T14:53:38.9902192Z BuildOutputFile                 
2022-07-20T14:53:38.9919344Z TestResultsFile                 C:\devOpsAgents\agent01\_work\1\s\TestResults.xml
2022-07-20T14:53:38.9938333Z BcptTestResultsFile             C:\devOpsAgents\agent01\_work\1\s\bcptTestResults.json
2022-07-20T14:53:38.9958664Z TestResultsFormat               JUnit
2022-07-20T14:53:39.0027029Z AdditionalCountries             
2022-07-20T14:53:39.0048255Z PackagesFolder                  C:\devOpsAgents\agent01\_work\1\s\.packages
2022-07-20T14:53:39.0068251Z OutputFolder                    C:\devOpsAgents\agent01\_work\1\s\.output
2022-07-20T14:53:39.0088263Z BuildArtifactFolder             C:\devOpsAgents\agent01\_work\1\a
2022-07-20T14:53:39.0111234Z CreateRuntimePackages           True
2022-07-20T14:53:39.0131438Z AppVersion                      
2022-07-20T14:53:39.0153789Z AppBuild                        625
2022-07-20T14:53:39.0176055Z AppRevision                     0
2022-07-20T14:53:39.0197581Z Mandatory Affixes               ART CU,ART_CU_
2022-07-20T14:53:39.0218719Z Supported Countries             cz
2022-07-20T14:53:39.0238670Z ObsoleteTagMinAllowedMajorMinor 
2022-07-20T14:53:39.0246577Z Install Apps
2022-07-20T14:53:39.0265435Z - \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.app
2022-07-20T14:53:39.0276036Z - \\srvts\BCAPPS\apps\f56970b9-9ab0-4f05-8e07-e64392f3c2f7\1.0.0.0\app.app
2022-07-20T14:53:39.0287388Z Install Test Apps
2022-07-20T14:53:39.0307528Z - \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.app
2022-07-20T14:53:39.0319381Z - \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.app
2022-07-20T14:53:39.0329602Z - \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbcb\1.0.0.0\app.app
2022-07-20T14:53:39.0338592Z Previous Apps
2022-07-20T14:53:39.0346782Z - None
2022-07-20T14:53:39.0356174Z Application folders
2022-07-20T14:53:39.0368301Z - C:\devOpsAgents\agent01\_work\1\s\App
2022-07-20T14:53:39.0377274Z Test application folders
2022-07-20T14:53:39.0392979Z - C:\devOpsAgents\agent01\_work\1\s\Test
2022-07-20T14:53:39.0401423Z BCPT Test application folders
2022-07-20T14:53:39.0410928Z - None
2022-07-20T14:53:39.0420265Z Custom CodeCops
2022-07-20T14:53:39.0429903Z - None
2022-07-20T14:53:39.0651865Z 
2022-07-20T14:53:39.0662121Z   _____       _ _ _                                          _        _                            
2022-07-20T14:53:39.0671824Z  |  __ \     | | (_)                                        (_)      (_)                           
2022-07-20T14:53:39.0681871Z  | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___ 
2022-07-20T14:53:39.0737345Z  |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2022-07-20T14:53:39.0738494Z  | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
2022-07-20T14:53:39.0739525Z  |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2022-07-20T14:53:39.0740507Z                            __/ |   __/ |                                                 __/ |     
2022-07-20T14:53:39.0741310Z                           |___/   |___/                                                 |___/      
2022-07-20T14:53:39.0741771Z 
2022-07-20T14:53:40.3999049Z Pulling mcr.microsoft.com/businesscentral:10.0.14393.2906
2022-07-20T14:53:40.8430350Z 
2022-07-20T14:53:40.8441643Z Pulling generic image took 2 seconds
2022-07-20T14:53:40.8614844Z 
2022-07-20T14:53:40.8626546Z    _____                _   _                               _        _                 
2022-07-20T14:53:40.8638487Z   / ____|              | | (_)                             | |      (_)                
2022-07-20T14:53:40.8650372Z  | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2022-07-20T14:53:40.8660618Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2022-07-20T14:53:40.8672565Z  | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
2022-07-20T14:53:40.8685601Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2022-07-20T14:53:40.8697134Z                                      __/ |                                             
2022-07-20T14:53:40.8708779Z                                     |___/                                              
2022-07-20T14:53:40.8715749Z 
2022-07-20T14:53:41.6457513Z WARNING: Container name should not exceed 15 characters
2022-07-20T14:53:42.2285689Z BcContainerHelper is version 3.0.11
2022-07-20T14:53:42.2298534Z BcContainerHelper is running as administrator
2022-07-20T14:53:43.7485571Z Hyper-V is Disabled
2022-07-20T14:53:43.7522457Z UsePsSession is True
2022-07-20T14:53:43.7556931Z Host is Microsoft Windows Server 2016 Standard - ltsc2016
2022-07-20T14:53:43.9905575Z Docker Client Version is 19.03.5
2022-07-20T14:53:43.9997048Z Docker Server Version is 19.03.5
2022-07-20T14:53:44.7045412Z Removing Desktop shortcuts
2022-07-20T14:53:45.3283364Z Fetching all docker images
2022-07-20T14:53:45.5641972Z Fetching all docker volumes
2022-07-20T14:53:46.0932591Z Using image mcr.microsoft.com/businesscentral:10.0.14393.2906
2022-07-20T14:53:46.8869850Z Creating Container devsrv0101-cu-ori-ci
2022-07-20T14:53:46.8882953Z Style: onprem
2022-07-20T14:53:46.8897504Z Multitenant: No
2022-07-20T14:53:46.9073124Z Version: 20.1.39764.39901
2022-07-20T14:53:46.9082432Z Platform: 20.0.39668.39849
2022-07-20T14:53:46.9101931Z Generic Tag: 1.0.2.10
2022-07-20T14:53:46.9207979Z Container OS Version: 10.0.14393.2906 (ltsc2016)
2022-07-20T14:53:46.9225520Z Host OS Version: 10.0.14393.1884 (ltsc2016)
2022-07-20T14:53:48.2098630Z WARNING: Host OS and Base Image Container OS doesn't match and Hyper-V is not installed. If you encounter issues, you could try to install Hyper-V.
2022-07-20T14:53:48.2110191Z Using process isolation
2022-07-20T14:53:48.2176636Z Using locale cs-CZ
2022-07-20T14:53:48.2247437Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2022-07-20T14:53:48.2348236Z Using license file \\srvts\BCAPPS\_config\CurrentDEVlicense.flf
2022-07-20T14:53:48.3131311Z Additional Parameters:
2022-07-20T14:53:48.3146906Z --volume "C:\devOpsAgents\agent01\_work\1\s:c:\sources"
2022-07-20T14:53:48.3159005Z --env customNavSettings=EnableTaskScheduler=False
2022-07-20T14:53:48.3168297Z Files in C:\ProgramData\BcContainerHelper\Extensions\devsrv0101-cu-ori-ci\my:
2022-07-20T14:53:48.3224226Z - AdditionalOutput.ps1
2022-07-20T14:53:48.3237995Z - license.flf
2022-07-20T14:53:48.3246701Z - MainLoop.ps1
2022-07-20T14:53:48.3259462Z - SetupVariables.ps1
2022-07-20T14:53:48.3268665Z - updatehosts.ps1
2022-07-20T14:53:48.3280175Z Creating container devsrv0101-cu-ori-ci from image mcr.microsoft.com/businesscentral:10.0.14393.2906
2022-07-20T14:53:48.6766520Z e36673b4e2e5c61c3035a658cf93dd69ace80634b098a055ca67a9c15e7d8043
2022-07-20T14:53:58.0517532Z Waiting for container devsrv0101-cu-ori-ci to be ready
2022-07-20T14:54:01.8845136Z Adding DEVSRV0101-CU-O to hosts file
2022-07-20T14:54:01.8855036Z Using artifactUrl https://bcartifacts.azureedge.net/onprem/20.1.39764.39901/cz
2022-07-20T14:54:01.8864980Z Using installer from C:\Run\150-new
2022-07-20T14:54:01.8873212Z Installing Business Central
2022-07-20T14:54:01.8883063Z Installing from artifacts
2022-07-20T14:54:04.5119989Z Starting Local SQL Server
2022-07-20T14:54:04.5138083Z Starting Internet Information Server
2022-07-20T14:54:04.5171639Z Copying Service Tier Files
2022-07-20T14:54:05.7890752Z c:\dl\onprem\20.1.39764.39901\platform\ServiceTier\Program Files
2022-07-20T14:54:05.7900896Z c:\dl\onprem\20.1.39764.39901\platform\ServiceTier\System64Folder
2022-07-20T14:54:05.7912078Z Copying PowerShell Scripts
2022-07-20T14:54:07.0928364Z c:\dl\onprem\20.1.39764.39901\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
2022-07-20T14:54:07.0948351Z c:\dl\onprem\20.1.39764.39901\platform\WindowsPowerShellScripts\WebSearch
2022-07-20T14:54:07.0966664Z Copying Web Client Files
2022-07-20T14:54:09.6311420Z c:\dl\onprem\20.1.39764.39901\platform\WebClient\Microsoft Dynamics NAV
2022-07-20T14:54:09.6320902Z Copying Client Files
2022-07-20T14:54:10.9123012Z c:\dl\onprem\20.1.39764.39901\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2022-07-20T14:54:10.9135804Z c:\dl\onprem\20.1.39764.39901\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2022-07-20T14:54:10.9149010Z c:\dl\onprem\20.1.39764.39901\platform\LegacyDlls\systemFolder
2022-07-20T14:54:10.9157721Z Copying ModernDev Files
2022-07-20T14:54:10.9167777Z c:\dl\onprem\20.1.39764.39901\platform
2022-07-20T14:54:10.9177988Z c:\dl\onprem\20.1.39764.39901\platform\ModernDev\program files\Microsoft Dynamics NAV
2022-07-20T14:54:10.9186207Z Copying additional files
2022-07-20T14:54:10.9195577Z Copying ConfigurationPackages
2022-07-20T14:54:10.9205578Z C:\dl\onprem\20.1.39764.39901\platform\ConfigurationPackages
2022-07-20T14:54:10.9214929Z Copying Test Assemblies
2022-07-20T14:54:10.9224090Z C:\dl\onprem\20.1.39764.39901\platform\Test Assemblies
2022-07-20T14:54:10.9235605Z Copying Applications
2022-07-20T14:54:12.1762483Z C:\dl\onprem\20.1.39764.39901\cz\Applications
2022-07-20T14:54:12.1773932Z Copying dependencies
2022-07-20T14:55:13.6371984Z Copying ReportBuilder
2022-07-20T14:55:14.8984439Z Importing PowerShell Modules
2022-07-20T14:55:19.9241824Z Restoring CRONUS Demo Database
2022-07-20T14:55:21.1969060Z Setting CompatibilityLevel for CRONUS on localhost\SQLEXPRESS
2022-07-20T14:55:21.1977916Z Modifying Business Central Service Tier Config File for Docker
2022-07-20T14:55:21.1987137Z Creating Business Central Service Tier
2022-07-20T14:55:22.5089201Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2022-07-20T14:58:51.4829252Z Starting Business Central Service Tier
2022-07-20T14:58:52.7555370Z Importing license file
2022-07-20T14:58:52.7565156Z Stopping Business Central Service Tier
2022-07-20T14:58:52.7575330Z Installation took 291 seconds
2022-07-20T14:58:52.7585271Z Installation complete
2022-07-20T14:58:54.0568457Z Initializing...
2022-07-20T14:58:54.0578084Z Setting host.containerhelper.internal to 172.30.96.1 in container hosts file
2022-07-20T14:58:54.0589391Z Starting Container
2022-07-20T14:58:54.0599459Z Hostname is devsrv0101-cu-ori-ci
2022-07-20T14:58:54.0608615Z PublicDnsName is devsrv0101-cu-ori-ci
2022-07-20T14:58:55.3775682Z Using NavUserPassword Authentication
2022-07-20T14:58:55.3786390Z Creating Self Signed Certificate
2022-07-20T14:58:55.3797826Z Self Signed Certificate Thumbprint 3C70629FC3997BA09F5B373E3A3F7C3A0689ADDC
2022-07-20T14:58:55.3811199Z DNS identity devsrv0101-cu-ori-ci
2022-07-20T14:58:55.3821380Z Modifying Service Tier Config File with Instance Specific Settings
2022-07-20T14:58:55.3831700Z Modifying Service Tier Config File with settings from environment variable
2022-07-20T14:58:56.6959633Z Setting EnableTaskScheduler to False
2022-07-20T14:59:52.4089434Z Starting Service Tier
2022-07-20T14:59:52.4117174Z Registering event sources
2022-07-20T14:59:52.4140753Z Creating DotNetCore Web Server Instance
2022-07-20T14:59:52.4172425Z Using application pool name: BC
2022-07-20T14:59:52.4205457Z Using default container name: NavWebApplicationContainer
2022-07-20T14:59:56.2333641Z Copy files to WWW root C:\inetpub\wwwroot\BC
2022-07-20T14:59:57.5303226Z Create the application pool BC
2022-07-20T14:59:58.8076767Z Create website: NavWebApplicationContainer without SSL
2022-07-20T14:59:58.8087855Z Update configuration: navsettings.json
2022-07-20T14:59:58.8098397Z Done Configuring Web Client
2022-07-20T14:59:58.8107953Z Using license file 'c:\run\my\license.flf'
2022-07-20T15:00:00.0846659Z Import License
2022-07-20T15:00:00.0857400Z Creating http download site
2022-07-20T15:00:00.0867730Z Setting SA Password and enabling SA
2022-07-20T15:00:10.5559565Z Creating admin as SQL User and add to sysadmin
2022-07-20T15:00:10.5571109Z Creating SUPER user
2022-07-20T15:00:10.5585086Z WARNING: The password that you entered does not meet the minimum requirements. 
2022-07-20T15:00:10.5595645Z It should be at least 8 characters long and contain at least one uppercase 
2022-07-20T15:00:17.2538185Z letter, one lowercase letter, and one number.
2022-07-20T15:00:17.2548979Z Container IP Address: 172.30.111.32
2022-07-20T15:00:17.2558597Z Container Hostname  : devsrv0101-cu-ori-ci
2022-07-20T15:00:17.2567940Z Container Dns Name  : devsrv0101-cu-ori-ci
2022-07-20T15:00:17.2577441Z Web Client          : http://devsrv0101-cu-ori-ci/BC/
2022-07-20T15:00:17.2586862Z Dev. Server         : http://devsrv0101-cu-ori-ci
2022-07-20T15:00:17.2596371Z Dev. ServerInstance : BC
2022-07-20T15:00:17.2606554Z Setting devsrv0101-cu-ori-ci to 172.30.111.32 in host hosts file
2022-07-20T15:00:17.2611886Z 
2022-07-20T15:00:17.2620659Z Files:
2022-07-20T15:00:17.2630424Z http://devsrv0101-cu-ori-ci:8080/ALLanguage.vsix
2022-07-20T15:00:17.2635340Z 
2022-07-20T15:00:17.2644601Z WARNING: You are running a container which is 604 days old.
2022-07-20T15:00:17.2653979Z Microsoft recommends that you always run the latest version of our containers.
2022-07-20T15:00:17.2659315Z 
2022-07-20T15:00:17.2668991Z Container Total Physical Memory is 16.0Gb
2022-07-20T15:00:17.2678232Z Container Free Physical Memory is 10.3Gb
2022-07-20T15:00:17.2683172Z 
2022-07-20T15:00:17.2693177Z Initialization took 84 seconds
2022-07-20T15:00:17.2703227Z Ready for connections!
2022-07-20T15:00:17.7984892Z Reading CustomSettings.config from devsrv0101-cu-ori-ci
2022-07-20T15:00:19.1666432Z Creating Desktop Shortcuts for devsrv0101-cu-ori-ci
2022-07-20T15:00:19.3628490Z Container devsrv0101-cu-ori-ci successfully created
2022-07-20T15:00:19.6408804Z 
2022-07-20T15:00:19.6421877Z Use:
2022-07-20T15:00:19.6444797Z Get-BcContainerEventLog -containerName devsrv0101-cu-ori-ci to retrieve a snapshot of the event log from the container
2022-07-20T15:00:19.6467967Z Get-BcContainerDebugInfo -containerName devsrv0101-cu-ori-ci to get debug information about the container
2022-07-20T15:00:19.6491720Z Enter-BcContainer -containerName devsrv0101-cu-ori-ci to open a PowerShell prompt inside the container
2022-07-20T15:00:19.6511997Z Remove-BcContainer -containerName devsrv0101-cu-ori-ci to remove the container again
2022-07-20T15:00:19.6532818Z docker logs devsrv0101-cu-ori-ci to retrieve information about URL's again
2022-07-20T15:00:21.0089464Z 
2022-07-20T15:00:21.0101502Z Creating container took 400 seconds
2022-07-20T15:00:21.0108509Z 
2022-07-20T15:00:21.0120868Z  _____                _       _                   _                           _                 _          
2022-07-20T15:00:21.0132024Z |  __ \              | |     (_)                 | |                         | |               (_)         
2022-07-20T15:00:21.0144775Z | |__) |___ ___  ___ | |_   ___ _ __   __ _    __| | ___ _ __   ___ _ __   __| | ___ _ __   ___ _  ___ ___ 
2022-07-20T15:00:21.0156577Z |  _  // _ \ __|/ _ \| \ \ / / | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| |/ _ \ __|
2022-07-20T15:00:21.0168345Z | | \ \  __\__ \ (_) | |\ V /| | | | | (_| | | (_| |  __/ |_) |  __/ | | | (_| |  __/ | | | (__| |  __\__ \
2022-07-20T15:00:21.0181264Z |_|  \_\___|___/\___/|_| \_/ |_|_| |_|\__, |  \__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|_|\___|___/
2022-07-20T15:00:21.0192732Z                                        __/ |            | |                                                
2022-07-20T15:00:21.0205347Z                                       |___/             |_|                                                
2022-07-20T15:00:21.0212103Z 
2022-07-20T15:00:21.2106355Z Sorted folders
2022-07-20T15:00:21.2119129Z - C:\devOpsAgents\agent01\_work\1\s\App
2022-07-20T15:00:21.2128463Z - C:\devOpsAgents\agent01\_work\1\s\Test
2022-07-20T15:00:21.2139974Z External dependencies
2022-07-20T15:00:21.2156206Z - 267b59d3-7302-44c5-ba77-c87000380514:Microsoft_Core Localization Pack for Czech_20.0.0.0.app
2022-07-20T15:00:21.2165999Z - d6636d6f-155e-4490-9979-ec323a6b7c81:Microsoft_Advance Payments Localization for Czech_20.0.0.0.app
2022-07-20T15:00:21.2176970Z - e476c379-5976-4362-8889-77e6c19f6699:ARTEX Informační systémy spol. s r.o._Packages and exports for shipping agents (AE056)_2.0.0.0.app
2022-07-20T15:00:21.2185406Z - f56970b9-9ab0-4f05-8e07-e64392f3c2f7:ARTEX Informační systémy spol. s r.o._Progress dialog helper (AE059)_1.0.0.0.app
2022-07-20T15:00:21.2196010Z - 437dbf0e-84ff-417a-965d-ed2bb9650972:Microsoft_Base Application_20.0.0.0.app
2022-07-20T15:00:21.2205282Z - 63ca2fa4-4f03-4f2b-a480-172fef340d3f:Microsoft_System Application_20.0.0.0.app
2022-07-20T15:00:21.2216401Z - b106bd07-f498-439c-a067-318c2524fbca:ARTEX Informační systémy spol. s r.o._Obecné testy (W1)_1.0.0.1.app
2022-07-20T15:00:21.2224746Z - b106bd07-f498-439c-a067-318c2524fbcb:ARTEX Informační systémy spol. s r.o._Obecné testy (CZ)_1.0.0.0.app
2022-07-20T15:00:21.2235862Z - dd0be2ea-f733-4d65-bb34-a28f4624fb14:Microsoft_Library Assert_20.0.0.0.app
2022-07-20T15:00:21.2245244Z - e7320ebb-08b3-4406-b1ec-b4927d3e280b:Microsoft_Any_20.0.0.0.app
2022-07-20T15:00:21.2256332Z - 9856ae4f-d1a7-46ef-89bb-6ef056398228:Microsoft_System Application Test Library_20.0.0.0.app
2022-07-20T15:00:21.2265869Z - 5d86850b-0d76-4eca-bd7b-951ad998e997:Microsoft_Tests-TestLibraries_20.0.0.0.app
2022-07-20T15:00:21.2275848Z - 23de40a6-dfe8-4f80-80db-d70f83ce8caf:Microsoft_Test Runner_20.0.0.0.app
2022-07-20T15:00:21.2293078Z 
2022-07-20T15:00:21.2304016Z   _____           _        _ _ _                                     
2022-07-20T15:00:21.2314387Z  |_   _|         | |      | | (_)                                    
2022-07-20T15:00:21.2324510Z    | |  _ __  ___| |_ __ _| | |_ _ __   __ _    __ _ _ __  _ __  ___ 
2022-07-20T15:00:21.2333893Z    | | | '_ \/ __| __/ _` | | | | '_ \ / _` |  / _` | '_ \| '_ \/ __|
2022-07-20T15:00:21.2344142Z   _| |_| | | \__ \ |_ (_| | | | | | | | (_| | | (_| | |_) | |_) \__ \
2022-07-20T15:00:21.2354095Z  |_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
2022-07-20T15:00:21.2363788Z                                         __/ |       | |   | |        
2022-07-20T15:00:21.2373660Z                                        |___/        |_|   |_|        
2022-07-20T15:00:21.2379309Z 
2022-07-20T15:00:23.5204601Z Publish-BcContainerApp Telemetry Correlation Id: 6c0c9c7b-3043-4b2c-8e81-a10a8df3080b
2022-07-20T15:00:24.6241075Z Removing Session devsrv0101-cu-ori-ci
2022-07-20T15:00:24.9173916Z Removing container devsrv0101-cu-ori-ci
2022-07-20T15:00:27.3111023Z Removing entries from hosts
2022-07-20T15:00:27.3249972Z Removing devsrv0101-cu-ori-ci from container hosts file
2022-07-20T15:00:27.4335614Z Removing devsrv0101-cu-ori-ci-* from container hosts file
2022-07-20T15:00:27.4387592Z Removing Desktop shortcuts
2022-07-20T15:00:27.4927240Z Removing C:\ProgramData\BcContainerHelper\Extensions\devsrv0101-cu-ori-ci
2022-07-20T15:00:27.9804380Z Run-AlPipeline Telemetry Correlation Id: 7de11408-3db8-4ca2-8720-945a3814fea9
2022-07-20T15:00:28.2356811Z ##[error]ForEach-Object : Item has already been added. Key in dictionary: 'f56970b9-9ab0-4f05-8e07-e64392f3c2f7:@{Major=1; Minor
=0; Build=0; Revision=0; MajorRevision=0; MinorRevision=0}'  Key being added: 'f56970b9-9ab0-4f05-8e07-e64392f3c2f7:@{M
ajor=1; Minor=0; Build=0; Revision=0; MajorRevision=0; MinorRevision=0}'
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.11\AppHandling\Sort-AppFilesByDependencies.ps1:42 c

har:21

+         $appFiles | ForEach-Object {

+                     ~~~~~~~~~~~~~~~~

    + CategoryInfo          : OperationStopped: (:) [ForEach-Object], ArgumentException

    + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ForEachObjectCommand
2022-07-20T15:00:28.2393690Z ##[error]PowerShell exited with code '1'.
2022-07-20T15:00:28.3493446Z ##[section]Finishing: Run Pipeline
freddydk commented 2 years ago

It looks like you have the same app in InstallApps and InstallTestApps:

\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.app

That is likely the reason for the problem.

TKapitan commented 2 years ago

Yeah, I thought the same, but I don't think it's the problem. It works once I remove "f56970b9-9ab0-4f05-8e07-e64392f3c2f7" from dependencies (only the App is dependent on this extension). Once removed, it works even with the "e476c379-5976-4362-8889-77e6c19f6699" used by both App and Test.

freddydk commented 2 years ago

Could you try to remove it from installTestApps and see?

freddydk commented 2 years ago

Alternatively, if you want me to investigate - I would need access to a repro scenario.

You would need to .zip the source and apps together with a simple .ps1 script which runs the pipeline hardcoded and fails - then I can investigate and if there is a bug, fix it.

TKapitan commented 2 years ago

I removed e476c379-5976-4362-8889-77e6c19f6699 from test app but it still fails.

2022-07-22T08:31:08.8969734Z ##[section]Starting: Run Pipeline
2022-07-22T08:31:08.9118370Z ==============================================================================
2022-07-22T08:31:08.9118916Z Task         : PowerShell
2022-07-22T08:31:08.9119369Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2022-07-22T08:31:08.9119822Z Version      : 2.200.0
2022-07-22T08:31:08.9120174Z Author       : Microsoft Corporation
2022-07-22T08:31:08.9120742Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2022-07-22T08:31:08.9121406Z ==============================================================================
2022-07-22T08:31:10.3348087Z Generating script.
2022-07-22T08:31:10.3465183Z Formatted command: . 'C:\devOpsAgents\agent01\_work\1\s\scripts\DevOps-Pipeline.ps1' -environment "AzureDevOps" -version "ci" -appBuild 652 -appRevision 0
2022-07-22T08:31:10.4974748Z ========================== Starting Command Output ===========================
2022-07-22T08:31:10.5427238Z ##[command]"C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\devOpsAgents\agent01\_work\_temp\e7475ac4-bae6-447e-aba2-9df00b91f149.ps1'"
2022-07-22T08:31:10.9215731Z 
2022-07-22T08:31:10.9229757Z Id     Name            PSJobTypeName   State         HasMoreData     Location             Command                  
2022-07-22T08:31:10.9242130Z --     ----            -------------   -----         -----------     --------             -------                  
2022-07-22T08:31:10.9254857Z 1      b719fdb3-e70...                 NotStarted    False                                ...                      
2022-07-22T08:31:11.0985538Z Set artifact = /{CIARTIFACTTYPE}/{CIARTIFACTVERSION}/{COUNTRY}
2022-07-22T08:31:11.1072328Z Set pipelineName = CU-ORI-ci
2022-07-22T08:31:11.1142703Z Set containerName = devsrv0101-cu-ori-ci
2022-07-22T08:31:11.1448410Z Set TKApublishAppFile = '\\srvts\BCAPPS\'
2022-07-22T08:31:11.1494492Z Set TKAsourceAppAppJsonFileLocation = '../App/app.json'
2022-07-22T08:31:11.1573212Z Set TKAsourceTestAppJsonFileLocation = '../Test/app.json'
2022-07-22T08:31:11.1585336Z Set country = 'cz'
2022-07-22T08:31:11.1645302Z Set installApps = '\\srvts\BCAPPS\apps\AE056_2.0.0.0.app'
2022-07-22T08:31:11.1693070Z Set installTestApps = '\\srvts\BCAPPS\tests\TEST-W1_1.0.0.0.app,\\srvts\BCAPPS\tests\TEST-CZ_1.0.0.0.app'
2022-07-22T08:31:11.1735818Z Set licenseFile = '\\srvts\BCAPPS\_config\CurrentDEVlicense.flf'
2022-07-22T08:31:11.1781380Z Set previousApps = ''
2022-07-22T08:31:11.1829936Z Set appSourceCopMandatoryAffixes = 'ART CU ,ART_CU_'
2022-07-22T08:31:11.1982134Z Set appSourceCopSupportedCountries = 'cz'
2022-07-22T08:31:11.2037564Z Set appFolders = 'App'
2022-07-22T08:31:11.2094976Z Set testFolders = 'Test'
2022-07-22T08:31:11.2154120Z Set memoryLimit = '6G'
2022-07-22T08:31:11.2213183Z Set additionalCountries = ''
2022-07-22T08:31:11.2232190Z Set genericImageName = ''
2022-07-22T08:31:11.2289933Z Set vaultNameForLocal = 'BuildVariables'
2022-07-22T08:31:11.2346655Z Set bcContainerHelperVersion = ''
2022-07-22T08:31:11.2392246Z Set failOn = 'warning'
2022-07-22T08:31:11.2466729Z Set installTestRunner = True
2022-07-22T08:31:11.2536170Z Set installTestFramework = True
2022-07-22T08:31:11.2582116Z Set installTestLibraries = True
2022-07-22T08:31:11.2630982Z Set installPerformanceToolkit = True
2022-07-22T08:31:11.2678163Z Set enableCodeCop = True
2022-07-22T08:31:11.2724543Z Set enableAppSourceCop = True
2022-07-22T08:31:11.2776960Z Set enablePerTenantExtensionCop = True
2022-07-22T08:31:11.2823921Z Set enableUICop = True
2022-07-22T08:31:11.2869782Z Set doNotSignApps = True
2022-07-22T08:31:11.2885349Z Set doNotRunTests = False
2022-07-22T08:31:11.2898764Z Set cacheImage = False
2022-07-22T08:31:11.2947338Z Set CreateRuntimePackages = True
2022-07-22T08:31:12.2390908Z BcContainerHelper version 3.0.11
2022-07-22T08:31:12.4348252Z BcContainerHelper emits usage statistics telemetry to Microsoft
2022-07-22T08:31:13.8105154Z Determining onprem artifact cz, OnPrem, 20.1
2022-07-22T08:31:15.7196917Z Accessing /onprem/20.1.39764.39901/cz
2022-07-22T08:31:15.7314719Z Identifying App dependencies...
2022-07-22T08:31:15.7327169Z Looking for  C:\devOpsAgents\agent01\_work\1\s\scripts\..\App\app.json
2022-07-22T08:31:15.7545288Z Trying to load json file: C:\devOpsAgents\agent01\_work\1\s\scripts\..\App\app.json
2022-07-22T08:31:15.7633789Z App.json found for C:\devOpsAgents\agent01\_work\1\s\scripts\..\App\app.json
2022-07-22T08:31:15.7808976Z Path: \\srvts\BCAPPS\ , id: e476c379-5976-4362-8889-77e6c19f6699 , version: 2.0.0.0
2022-07-22T08:31:15.9183348Z Requested version of e476c379-5976-4362-8889-77e6c19f6699 is 2.0.0.0
2022-07-22T08:31:15.9329675Z Used version of e476c379-5976-4362-8889-77e6c19f6699 is 2.0.0.0
2022-07-22T08:31:15.9371023Z Trying to load json file: \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.json
2022-07-22T08:31:15.9438746Z App.json found for \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.json
2022-07-22T08:31:15.9457677Z Checking exlude extension ID: e476c379-5976-4362-8889-77e6c19f6699 and 
2022-07-22T08:31:15.9525830Z Path: \\srvts\BCAPPS\ , id: f56970b9-9ab0-4f05-8e07-e64392f3c2f7 , version: 1.0.0.0
2022-07-22T08:31:15.9566862Z Requested version of f56970b9-9ab0-4f05-8e07-e64392f3c2f7 is 1.0.0.0
2022-07-22T08:31:15.9605521Z Used version of f56970b9-9ab0-4f05-8e07-e64392f3c2f7 is 1.0.0.0
2022-07-22T08:31:15.9649693Z Trying to load json file: \\srvts\BCAPPS\apps\f56970b9-9ab0-4f05-8e07-e64392f3c2f7\1.0.0.0\app.json
2022-07-22T08:31:15.9724981Z App.json found for \\srvts\BCAPPS\apps\f56970b9-9ab0-4f05-8e07-e64392f3c2f7\1.0.0.0\app.json
2022-07-22T08:31:15.9774612Z Checking exlude extension ID: f56970b9-9ab0-4f05-8e07-e64392f3c2f7 and 
2022-07-22T08:31:15.9800024Z App dependencies: \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.app,\\srvts\BCAPPS\apps\f56970b9-9ab0-4f05-8e07-e64392f3c2f7\1.0.0.0\app.app
2022-07-22T08:31:15.9815659Z Identifying Test dependencies...
2022-07-22T08:31:15.9836236Z Looking for  C:\devOpsAgents\agent01\_work\1\s\scripts\..\Test\app.json
2022-07-22T08:31:15.9851335Z Trying to load json file: C:\devOpsAgents\agent01\_work\1\s\scripts\..\Test\app.json
2022-07-22T08:31:15.9913126Z App.json found for C:\devOpsAgents\agent01\_work\1\s\scripts\..\Test\app.json
2022-07-22T08:31:15.9926846Z Path: \\srvts\BCAPPS\ , id: ab17c9d9-656f-491c-9001-443df58174b0 , version: 1.0.0.0
2022-07-22T08:31:15.9970236Z Requested version of ab17c9d9-656f-491c-9001-443df58174b0 is 1.0.0.0
2022-07-22T08:31:16.0021664Z Used version of ab17c9d9-656f-491c-9001-443df58174b0 is 1.0.647.0
2022-07-22T08:31:16.0061547Z Trying to load json file: \\srvts\BCAPPS\apps\ab17c9d9-656f-491c-9001-443df58174b0\1.0.647.0\app.json
2022-07-22T08:31:16.0657612Z App.json found for \\srvts\BCAPPS\apps\ab17c9d9-656f-491c-9001-443df58174b0\1.0.647.0\app.json
2022-07-22T08:31:16.0668412Z Path: \\srvts\BCAPPS\ , id: e476c379-5976-4362-8889-77e6c19f6699 , version: 2.0.0.0
2022-07-22T08:31:16.0699423Z Requested version of e476c379-5976-4362-8889-77e6c19f6699 is 2.0.0.0
2022-07-22T08:31:16.0714484Z Used version of e476c379-5976-4362-8889-77e6c19f6699 is 2.0.0.0
2022-07-22T08:31:16.0739519Z Trying to load json file: \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.json
2022-07-22T08:31:16.0780843Z App.json found for \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.json
2022-07-22T08:31:16.0791869Z Checking exlude extension ID: e476c379-5976-4362-8889-77e6c19f6699 and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-22T08:31:16.0802311Z Checking exlude extension ID: ab17c9d9-656f-491c-9001-443df58174b0 and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-22T08:31:16.0813747Z Path: \\srvts\BCAPPS\ , id: b106bd07-f498-439c-a067-318c2524fbca , version: 1.0.0.1
2022-07-22T08:31:16.0842751Z Requested version of b106bd07-f498-439c-a067-318c2524fbca is 1.0.0.1
2022-07-22T08:31:16.0887126Z Used version of b106bd07-f498-439c-a067-318c2524fbca is 1.0.0.1
2022-07-22T08:31:16.0917563Z Trying to load json file: \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.json
2022-07-22T08:31:16.0969837Z App.json found for \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.json
2022-07-22T08:31:16.0986051Z Checking exlude extension ID: b106bd07-f498-439c-a067-318c2524fbca and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-22T08:31:16.0997315Z Path: \\srvts\BCAPPS\ , id: b106bd07-f498-439c-a067-318c2524fbcb , version: 1.0.0.0
2022-07-22T08:31:16.1026949Z Requested version of b106bd07-f498-439c-a067-318c2524fbcb is 1.0.0.0
2022-07-22T08:31:16.1068805Z Used version of b106bd07-f498-439c-a067-318c2524fbcb is 1.0.0.0
2022-07-22T08:31:16.1102826Z Trying to load json file: \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbcb\1.0.0.0\app.json
2022-07-22T08:31:16.1161080Z App.json found for \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbcb\1.0.0.0\app.json
2022-07-22T08:31:16.1170557Z Path: \\srvts\BCAPPS\ , id: b106bd07-f498-439c-a067-318c2524fbca , version: 1.0.0.0
2022-07-22T08:31:16.1186937Z Requested version of b106bd07-f498-439c-a067-318c2524fbca is 1.0.0.0
2022-07-22T08:31:16.1214092Z Used version of b106bd07-f498-439c-a067-318c2524fbca is 1.0.0.1
2022-07-22T08:31:16.1234823Z Trying to load json file: \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.json
2022-07-22T08:31:16.1284659Z App.json found for \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.json
2022-07-22T08:31:16.1296107Z Checking exlude extension ID: b106bd07-f498-439c-a067-318c2524fbca and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-22T08:31:16.1306501Z Checking exlude extension ID: b106bd07-f498-439c-a067-318c2524fbcb and ab17c9d9-656f-491c-9001-443df58174b0
2022-07-22T08:31:16.1317778Z Test dependencies: \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.app,\\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbcb\1.0.0.0\app.app
2022-07-22T08:31:16.3711627Z Determining artifacts to use
2022-07-22T08:31:16.5085169Z   _____                               _                
2022-07-22T08:31:16.5097531Z  |  __ \                             | |               
2022-07-22T08:31:16.5118357Z  | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
2022-07-22T08:31:16.5130733Z  |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2022-07-22T08:31:16.5144332Z  | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
2022-07-22T08:31:16.5158473Z  |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/
2022-07-22T08:31:16.5165269Z 
2022-07-22T08:31:16.5177468Z Pipeline name               CU-ORI-ci
2022-07-22T08:31:16.5190304Z Container name              devsrv0101-cu-ori-ci
2022-07-22T08:31:16.5200972Z Image name                  
2022-07-22T08:31:16.5214869Z ArtifactUrl                 https://bcartifacts.azureedge.net/onprem/20.1.39764.39901/cz
2022-07-22T08:31:16.5225088Z SasToken                    Not Specified
2022-07-22T08:31:16.5247270Z BcAuthContext               Not Specified
2022-07-22T08:31:16.5266421Z Environment                 
2022-07-22T08:31:16.5294149Z ReUseContainer              False
2022-07-22T08:31:16.5349433Z KeepContainer               False
2022-07-22T08:31:16.5372049Z Auth                        UserPassword
2022-07-22T08:31:16.5425817Z Credential                  Specified
2022-07-22T08:31:16.5444767Z CompanyName                     
2022-07-22T08:31:16.5465677Z MemoryLimit                     6G
2022-07-22T08:31:16.5484403Z Enable Task Scheduler           False
2022-07-22T08:31:16.5502940Z Assign Premium Plan             False
2022-07-22T08:31:16.5522101Z Install Test Runner             True
2022-07-22T08:31:16.5540261Z Install Test Framework          True
2022-07-22T08:31:16.5559189Z Install Test Libraries          True
2022-07-22T08:31:16.5577515Z Install Perf. Toolkit           True
2022-07-22T08:31:16.5596458Z InstallOnlyReferencedApps       False
2022-07-22T08:31:16.5616826Z generateDependencyArtifact      False
2022-07-22T08:31:16.5637897Z CopySymbolsFromContainer        False
2022-07-22T08:31:16.5656472Z enableCodeCop                   True
2022-07-22T08:31:16.5674941Z enableAppSourceCop              True
2022-07-22T08:31:16.5693307Z enableUICop                     True
2022-07-22T08:31:16.5712118Z enablePerTenantExtensionCop     True
2022-07-22T08:31:16.5731727Z doNotPerformUpgrade             False
2022-07-22T08:31:16.5751914Z doNotPublishApps                False
2022-07-22T08:31:16.5772390Z uninstallRemovedApps            False
2022-07-22T08:31:16.5788438Z escapeFromCops                  False
2022-07-22T08:31:16.5807407Z doNotBuildTests                 False
2022-07-22T08:31:16.5826366Z doNotRunTests                   False
2022-07-22T08:31:16.5845057Z doNotRunBcptTests               False
2022-07-22T08:31:16.5863568Z useDefaultAppSourceRuleSet      False
2022-07-22T08:31:16.5879481Z rulesetFile                     
2022-07-22T08:31:16.5901750Z azureDevOps                     True
2022-07-22T08:31:16.5920690Z gitLab                          False
2022-07-22T08:31:16.5939653Z gitHubActions                   False
2022-07-22T08:31:16.5958074Z License file                    Specified
2022-07-22T08:31:16.5970655Z CodeSignCertPfxFile             Not specified
2022-07-22T08:31:16.6005912Z CodeSignCertPfxPassword         Not specified
2022-07-22T08:31:16.6057888Z CodeSignCertIsSelfSigned        False
2022-07-22T08:31:16.6069857Z KeyVaultCertPfxFile             Not specified
2022-07-22T08:31:16.6082662Z KeyVaultCertPfxPassword         Not specified
2022-07-22T08:31:16.6099753Z KeyVaultClientId                
2022-07-22T08:31:16.6112277Z BuildOutputFile                 
2022-07-22T08:31:16.6130348Z TestResultsFile                 C:\devOpsAgents\agent01\_work\1\s\TestResults.xml
2022-07-22T08:31:16.6147331Z BcptTestResultsFile             C:\devOpsAgents\agent01\_work\1\s\bcptTestResults.json
2022-07-22T08:31:16.6163894Z TestResultsFormat               JUnit
2022-07-22T08:31:16.6217421Z AdditionalCountries             
2022-07-22T08:31:16.6232236Z PackagesFolder                  C:\devOpsAgents\agent01\_work\1\s\.packages
2022-07-22T08:31:16.6250237Z OutputFolder                    C:\devOpsAgents\agent01\_work\1\s\.output
2022-07-22T08:31:16.6267243Z BuildArtifactFolder             C:\devOpsAgents\agent01\_work\1\a
2022-07-22T08:31:16.6285336Z CreateRuntimePackages           True
2022-07-22T08:31:16.6300054Z AppVersion                      
2022-07-22T08:31:16.6318720Z AppBuild                        652
2022-07-22T08:31:16.6337741Z AppRevision                     0
2022-07-22T08:31:16.6355409Z Mandatory Affixes               ART CU,ART_CU_
2022-07-22T08:31:16.6372925Z Supported Countries             cz
2022-07-22T08:31:16.6388549Z ObsoleteTagMinAllowedMajorMinor 
2022-07-22T08:31:16.6399207Z Install Apps
2022-07-22T08:31:16.6413599Z - \\srvts\BCAPPS\apps\e476c379-5976-4362-8889-77e6c19f6699\2.0.0.0\app.app
2022-07-22T08:31:16.6423867Z - \\srvts\BCAPPS\apps\f56970b9-9ab0-4f05-8e07-e64392f3c2f7\1.0.0.0\app.app
2022-07-22T08:31:16.6433078Z Install Test Apps
2022-07-22T08:31:16.6448569Z - \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbca\1.0.0.1\app.app
2022-07-22T08:31:16.6458187Z - \\srvts\BCAPPS\apps\b106bd07-f498-439c-a067-318c2524fbcb\1.0.0.0\app.app
2022-07-22T08:31:16.6467995Z Previous Apps
2022-07-22T08:31:16.6476526Z - None
2022-07-22T08:31:16.6486334Z Application folders
2022-07-22T08:31:16.6498083Z - C:\devOpsAgents\agent01\_work\1\s\App
2022-07-22T08:31:16.6508793Z Test application folders
2022-07-22T08:31:16.6522310Z - C:\devOpsAgents\agent01\_work\1\s\Test
2022-07-22T08:31:16.6531744Z BCPT Test application folders
2022-07-22T08:31:16.6540715Z - None
2022-07-22T08:31:16.6549752Z Custom CodeCops
2022-07-22T08:31:16.6559409Z - None
2022-07-22T08:31:16.6698119Z 
2022-07-22T08:31:16.6709125Z   _____       _ _ _                                          _        _                            
2022-07-22T08:31:16.6718977Z  |  __ \     | | (_)                                        (_)      (_)                           
2022-07-22T08:31:16.6728439Z  | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___ 
2022-07-22T08:31:16.6737648Z  |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2022-07-22T08:31:16.6746879Z  | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
2022-07-22T08:31:16.6756218Z  |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2022-07-22T08:31:16.6765398Z                            __/ |   __/ |                                                 __/ |     
2022-07-22T08:31:16.6774225Z                           |___/   |___/                                                 |___/      
2022-07-22T08:31:16.6779160Z 
2022-07-22T08:31:17.3183320Z Pulling mcr.microsoft.com/businesscentral:10.0.14393.2906
2022-07-22T08:31:17.8588268Z 
2022-07-22T08:31:17.8601769Z Pulling generic image took 1 seconds
2022-07-22T08:31:17.8732476Z 
2022-07-22T08:31:17.8746728Z    _____                _   _                               _        _                 
2022-07-22T08:31:17.8760034Z   / ____|              | | (_)                             | |      (_)                
2022-07-22T08:31:17.8772331Z  | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2022-07-22T08:31:17.8784156Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2022-07-22T08:31:17.8796366Z  | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
2022-07-22T08:31:17.8810042Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2022-07-22T08:31:17.8823615Z                                      __/ |                                             
2022-07-22T08:31:17.8837636Z                                     |___/                                              
2022-07-22T08:31:17.8846345Z 
2022-07-22T08:31:18.6855065Z WARNING: Container name should not exceed 15 characters
2022-07-22T08:31:19.0940465Z BcContainerHelper is version 3.0.11
2022-07-22T08:31:19.0954146Z BcContainerHelper is running as administrator
2022-07-22T08:31:20.7672318Z Hyper-V is Disabled
2022-07-22T08:31:20.7712629Z UsePsSession is True
2022-07-22T08:31:20.7748277Z Host is Microsoft Windows Server 2016 Standard - ltsc2016
2022-07-22T08:31:21.0328543Z Docker Client Version is 19.03.5
2022-07-22T08:31:21.0368236Z Docker Server Version is 19.03.5
2022-07-22T08:31:21.7477424Z Removing Desktop shortcuts
2022-07-22T08:31:22.4002681Z Fetching all docker images
2022-07-22T08:31:22.6487302Z Fetching all docker volumes
2022-07-22T08:31:23.2062785Z Using image mcr.microsoft.com/businesscentral:10.0.14393.2906
2022-07-22T08:31:23.9287638Z Creating Container devsrv0101-cu-ori-ci
2022-07-22T08:31:23.9298980Z Style: onprem
2022-07-22T08:31:23.9391522Z Multitenant: No
2022-07-22T08:31:23.9406824Z Version: 20.1.39764.39901
2022-07-22T08:31:23.9435310Z Platform: 20.0.39668.39849
2022-07-22T08:31:23.9448825Z Generic Tag: 1.0.2.10
2022-07-22T08:31:23.9610053Z Container OS Version: 10.0.14393.2906 (ltsc2016)
2022-07-22T08:31:23.9622006Z Host OS Version: 10.0.14393.1884 (ltsc2016)
2022-07-22T08:31:25.3118056Z WARNING: Host OS and Base Image Container OS doesn't match and Hyper-V is not installed. If you encounter issues, you could try to install Hyper-V.
2022-07-22T08:31:25.3129057Z Using process isolation
2022-07-22T08:31:25.3194888Z Using locale cs-CZ
2022-07-22T08:31:25.3264335Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2022-07-22T08:31:25.3411230Z Using license file \\srvts\BCAPPS\_config\CurrentDEVlicense.flf
2022-07-22T08:31:25.4087089Z Additional Parameters:
2022-07-22T08:31:25.4103526Z --volume "C:\devOpsAgents\agent01\_work\1\s:c:\sources"
2022-07-22T08:31:25.4116105Z --env customNavSettings=EnableTaskScheduler=False
2022-07-22T08:31:25.4128173Z Files in C:\ProgramData\BcContainerHelper\Extensions\devsrv0101-cu-ori-ci\my:
2022-07-22T08:31:25.4184695Z - AdditionalOutput.ps1
2022-07-22T08:31:25.4195869Z - license.flf
2022-07-22T08:31:25.4207929Z - MainLoop.ps1
2022-07-22T08:31:25.4220633Z - SetupVariables.ps1
2022-07-22T08:31:25.4233157Z - updatehosts.ps1
2022-07-22T08:31:25.4246662Z Creating container devsrv0101-cu-ori-ci from image mcr.microsoft.com/businesscentral:10.0.14393.2906
2022-07-22T08:31:25.8130171Z d03f8bb1ae56244ec21cd703472c72d58a4ef4179af7ac2f508d96ce82427df3
2022-07-22T08:31:37.9277077Z Waiting for container devsrv0101-cu-ori-ci to be ready
2022-07-22T08:31:41.7987351Z Adding DEVSRV0101-CU-O to hosts file
2022-07-22T08:31:41.8003508Z Using artifactUrl https://bcartifacts.azureedge.net/onprem/20.1.39764.39901/cz
2022-07-22T08:31:41.8012009Z Using installer from C:\Run\150-new
2022-07-22T08:31:41.8023039Z Installing Business Central
2022-07-22T08:31:41.8035951Z Installing from artifacts
2022-07-22T08:31:45.8499433Z Starting Local SQL Server
2022-07-22T08:31:45.8516328Z Starting Internet Information Server
2022-07-22T08:31:45.8547065Z Copying Service Tier Files
2022-07-22T08:31:47.1685537Z c:\dl\onprem\20.1.39764.39901\platform\ServiceTier\Program Files
2022-07-22T08:31:47.1697613Z c:\dl\onprem\20.1.39764.39901\platform\ServiceTier\System64Folder
2022-07-22T08:31:47.1708366Z Copying PowerShell Scripts
2022-07-22T08:31:48.5245677Z c:\dl\onprem\20.1.39764.39901\platform\WindowsPowerShellScripts\Cloud\NAVAdministration
2022-07-22T08:31:48.5256649Z c:\dl\onprem\20.1.39764.39901\platform\WindowsPowerShellScripts\WebSearch
2022-07-22T08:31:48.5272735Z Copying Web Client Files
2022-07-22T08:31:51.1457628Z c:\dl\onprem\20.1.39764.39901\platform\WebClient\Microsoft Dynamics NAV
2022-07-22T08:31:51.1467744Z Copying Client Files
2022-07-22T08:31:52.4437887Z c:\dl\onprem\20.1.39764.39901\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2022-07-22T08:31:52.4455000Z c:\dl\onprem\20.1.39764.39901\platform\LegacyDlls\program files\Microsoft Dynamics NAV
2022-07-22T08:31:52.4571483Z c:\dl\onprem\20.1.39764.39901\platform\LegacyDlls\systemFolder
2022-07-22T08:31:52.4581446Z Copying ModernDev Files
2022-07-22T08:31:52.4591417Z c:\dl\onprem\20.1.39764.39901\platform
2022-07-22T08:31:52.4601440Z c:\dl\onprem\20.1.39764.39901\platform\ModernDev\program files\Microsoft Dynamics NAV
2022-07-22T08:31:52.4610177Z Copying additional files
2022-07-22T08:31:52.4619152Z Copying ConfigurationPackages
2022-07-22T08:31:52.4629141Z C:\dl\onprem\20.1.39764.39901\platform\ConfigurationPackages
2022-07-22T08:31:53.7880919Z Copying Test Assemblies
2022-07-22T08:31:53.7890357Z C:\dl\onprem\20.1.39764.39901\platform\Test Assemblies
2022-07-22T08:31:53.7899488Z Copying Applications
2022-07-22T08:31:53.7909118Z C:\dl\onprem\20.1.39764.39901\cz\Applications
2022-07-22T08:31:53.7918191Z Copying dependencies
2022-07-22T08:33:01.1281139Z Copying ReportBuilder
2022-07-22T08:33:03.6755040Z Importing PowerShell Modules
2022-07-22T08:33:10.3907825Z Restoring CRONUS Demo Database
2022-07-22T08:33:11.7735512Z Setting CompatibilityLevel for CRONUS on localhost\SQLEXPRESS
2022-07-22T08:33:11.7751663Z Modifying Business Central Service Tier Config File for Docker
2022-07-22T08:33:11.7757629Z Creating Business Central Service Tier
2022-07-22T08:33:11.7763609Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2022-07-22T08:36:52.5595081Z Starting Business Central Service Tier
2022-07-22T08:36:53.9736640Z Importing license file
2022-07-22T08:36:53.9749512Z Stopping Business Central Service Tier
2022-07-22T08:36:53.9754865Z Installation took 311 seconds
2022-07-22T08:36:53.9762999Z Installation complete
2022-07-22T08:36:53.9790117Z Initializing...
2022-07-22T08:36:53.9790797Z Setting host.containerhelper.internal to 172.30.96.1 in container hosts file
2022-07-22T08:36:53.9791463Z Starting Container
2022-07-22T08:36:53.9791951Z Hostname is devsrv0101-cu-ori-ci
2022-07-22T08:36:55.2657218Z PublicDnsName is devsrv0101-cu-ori-ci
2022-07-22T08:36:55.2666445Z Using NavUserPassword Authentication
2022-07-22T08:36:56.6539591Z Creating Self Signed Certificate
2022-07-22T08:36:56.6617088Z Self Signed Certificate Thumbprint 7049CBD4C9632DBB56A05575A1AA9312A2F1D516
2022-07-22T08:36:56.6623719Z DNS identity devsrv0101-cu-ori-ci
2022-07-22T08:36:56.6632965Z Modifying Service Tier Config File with Instance Specific Settings
2022-07-22T08:36:56.6649161Z Modifying Service Tier Config File with settings from environment variable
2022-07-22T08:36:58.3409080Z Setting EnableTaskScheduler to False
2022-07-22T08:38:02.9569988Z Starting Service Tier
2022-07-22T08:38:02.9618706Z Registering event sources
2022-07-22T08:38:02.9642613Z Creating DotNetCore Web Server Instance
2022-07-22T08:38:02.9653653Z Using application pool name: BC
2022-07-22T08:38:02.9663267Z Using default container name: NavWebApplicationContainer
2022-07-22T08:38:08.4076773Z Copy files to WWW root C:\inetpub\wwwroot\BC
2022-07-22T08:38:08.4120087Z Create the application pool BC
2022-07-22T08:38:09.8103898Z Create website: NavWebApplicationContainer without SSL
2022-07-22T08:38:09.8117398Z Update configuration: navsettings.json
2022-07-22T08:38:09.8123067Z Done Configuring Web Client
2022-07-22T08:38:09.8163820Z Using license file 'c:\run\my\license.flf'
2022-07-22T08:38:11.6157436Z Import License
2022-07-22T08:38:11.6206941Z Creating http download site
2022-07-22T08:38:11.6207762Z Setting SA Password and enabling SA
2022-07-22T08:38:24.5620084Z Creating admin as SQL User and add to sysadmin
2022-07-22T08:38:24.5635162Z Creating SUPER user
2022-07-22T08:38:24.5644205Z WARNING: The password that you entered does not meet the minimum requirements. 
2022-07-22T08:38:24.5652766Z It should be at least 8 characters long and contain at least one uppercase 
2022-07-22T08:38:32.3493904Z letter, one lowercase letter, and one number.
2022-07-22T08:38:32.3507960Z Container IP Address: 172.30.97.79
2022-07-22T08:38:32.3514575Z Container Hostname  : devsrv0101-cu-ori-ci
2022-07-22T08:38:32.3531949Z Container Dns Name  : devsrv0101-cu-ori-ci
2022-07-22T08:38:32.3532750Z Web Client          : http://devsrv0101-cu-ori-ci/BC/
2022-07-22T08:38:32.3553178Z Dev. Server         : http://devsrv0101-cu-ori-ci
2022-07-22T08:38:32.3553901Z Dev. ServerInstance : BC
2022-07-22T08:38:32.3555648Z Setting devsrv0101-cu-ori-ci to 172.30.97.79 in host hosts file
2022-07-22T08:38:32.3556587Z 
2022-07-22T08:38:32.3567031Z Files:
2022-07-22T08:38:32.3579645Z http://devsrv0101-cu-ori-ci:8080/ALLanguage.vsix
2022-07-22T08:38:32.3580205Z 
2022-07-22T08:38:32.3593036Z WARNING: You are running a container which is 606 days old.
2022-07-22T08:38:32.3598617Z Microsoft recommends that you always run the latest version of our containers.
2022-07-22T08:38:32.3606384Z 
2022-07-22T08:38:32.3620484Z Container Total Physical Memory is 16.0Gb
2022-07-22T08:38:32.3630240Z Container Free Physical Memory is 7.1Gb
2022-07-22T08:38:32.3631743Z 
2022-07-22T08:38:32.3642414Z Initialization took 99 seconds
2022-07-22T08:38:32.3649340Z Ready for connections!
2022-07-22T08:38:34.3517956Z Reading CustomSettings.config from devsrv0101-cu-ori-ci
2022-07-22T08:38:36.1702946Z Creating Desktop Shortcuts for devsrv0101-cu-ori-ci
2022-07-22T08:38:36.3838969Z Container devsrv0101-cu-ori-ci successfully created
2022-07-22T08:38:36.7750948Z 
2022-07-22T08:38:36.7766855Z Use:
2022-07-22T08:38:36.7790945Z Get-BcContainerEventLog -containerName devsrv0101-cu-ori-ci to retrieve a snapshot of the event log from the container
2022-07-22T08:38:36.7810986Z Get-BcContainerDebugInfo -containerName devsrv0101-cu-ori-ci to get debug information about the container
2022-07-22T08:38:36.7833204Z Enter-BcContainer -containerName devsrv0101-cu-ori-ci to open a PowerShell prompt inside the container
2022-07-22T08:38:36.7855884Z Remove-BcContainer -containerName devsrv0101-cu-ori-ci to remove the container again
2022-07-22T08:38:36.7873683Z docker logs devsrv0101-cu-ori-ci to retrieve information about URL's again
2022-07-22T08:38:37.7591230Z 
2022-07-22T08:38:37.7602722Z Creating container took 440 seconds
2022-07-22T08:38:37.7609498Z 
2022-07-22T08:38:37.7622520Z  _____                _       _                   _                           _                 _          
2022-07-22T08:38:37.7634809Z |  __ \              | |     (_)                 | |                         | |               (_)         
2022-07-22T08:38:37.7643873Z | |__) |___ ___  ___ | |_   ___ _ __   __ _    __| | ___ _ __   ___ _ __   __| | ___ _ __   ___ _  ___ ___ 
2022-07-22T08:38:37.7653171Z |  _  // _ \ __|/ _ \| \ \ / / | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '_ \ / _` |/ _ \ '_ \ / __| |/ _ \ __|
2022-07-22T08:38:37.7661820Z | | \ \  __\__ \ (_) | |\ V /| | | | | (_| | | (_| |  __/ |_) |  __/ | | | (_| |  __/ | | | (__| |  __\__ \
2022-07-22T08:38:37.7671260Z |_|  \_\___|___/\___/|_| \_/ |_|_| |_|\__, |  \__,_|\___| .__/ \___|_| |_|\__,_|\___|_| |_|\___|_|\___|___/
2022-07-22T08:38:37.7680191Z                                        __/ |            | |                                                
2022-07-22T08:38:37.7688832Z                                       |___/             |_|                                                
2022-07-22T08:38:37.7694449Z 
2022-07-22T08:38:37.9579348Z Sorted folders
2022-07-22T08:38:37.9599242Z - C:\devOpsAgents\agent01\_work\1\s\App
2022-07-22T08:38:37.9691899Z - C:\devOpsAgents\agent01\_work\1\s\Test
2022-07-22T08:38:37.9736839Z External dependencies
2022-07-22T08:38:37.9773357Z - 267b59d3-7302-44c5-ba77-c87000380514:Microsoft_Core Localization Pack for Czech_20.0.0.0.app
2022-07-22T08:38:37.9812786Z - d6636d6f-155e-4490-9979-ec323a6b7c81:Microsoft_Advance Payments Localization for Czech_20.0.0.0.app
2022-07-22T08:38:37.9837778Z - e476c379-5976-4362-8889-77e6c19f6699:ARTEX Informační systémy spol. s r.o._Packages and exports for shipping agents (AE056)_2.0.0.0.app
2022-07-22T08:38:37.9870181Z - f56970b9-9ab0-4f05-8e07-e64392f3c2f7:ARTEX Informační systémy spol. s r.o._Progress dialog helper (AE059)_1.0.0.0.app
2022-07-22T08:38:37.9966323Z - 437dbf0e-84ff-417a-965d-ed2bb9650972:Microsoft_Base Application_20.0.0.0.app
2022-07-22T08:38:38.0042213Z - 63ca2fa4-4f03-4f2b-a480-172fef340d3f:Microsoft_System Application_20.0.0.0.app
2022-07-22T08:38:38.0058933Z - b106bd07-f498-439c-a067-318c2524fbca:ARTEX Informační systémy spol. s r.o._Obecné testy (W1)_1.0.0.1.app
2022-07-22T08:38:38.0069971Z - b106bd07-f498-439c-a067-318c2524fbcb:ARTEX Informační systémy spol. s r.o._Obecné testy (CZ)_1.0.0.0.app
2022-07-22T08:38:38.0249945Z - dd0be2ea-f733-4d65-bb34-a28f4624fb14:Microsoft_Library Assert_20.0.0.0.app
2022-07-22T08:38:38.0371560Z - e7320ebb-08b3-4406-b1ec-b4927d3e280b:Microsoft_Any_20.0.0.0.app
2022-07-22T08:38:38.0392884Z - 9856ae4f-d1a7-46ef-89bb-6ef056398228:Microsoft_System Application Test Library_20.0.0.0.app
2022-07-22T08:38:38.0408659Z - 5d86850b-0d76-4eca-bd7b-951ad998e997:Microsoft_Tests-TestLibraries_20.0.0.0.app
2022-07-22T08:38:38.0420096Z - 23de40a6-dfe8-4f80-80db-d70f83ce8caf:Microsoft_Test Runner_20.0.0.0.app
2022-07-22T08:38:38.0430605Z 
2022-07-22T08:38:38.0448096Z   _____           _        _ _ _                                     
2022-07-22T08:38:38.0556047Z  |_   _|         | |      | | (_)                                    
2022-07-22T08:38:38.0599162Z    | |  _ __  ___| |_ __ _| | |_ _ __   __ _    __ _ _ __  _ __  ___ 
2022-07-22T08:38:38.0629370Z    | | | '_ \/ __| __/ _` | | | | '_ \ / _` |  / _` | '_ \| '_ \/ __|
2022-07-22T08:38:38.0679994Z   _| |_| | | \__ \ |_ (_| | | | | | | | (_| | | (_| | |_) | |_) \__ \
2022-07-22T08:38:38.0709937Z  |_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
2022-07-22T08:38:38.0716230Z                                         __/ |       | |   | |        
2022-07-22T08:38:38.0760546Z                                        |___/        |_|   |_|        
2022-07-22T08:38:38.0760878Z 
2022-07-22T08:38:40.7939735Z Publish-BcContainerApp Telemetry Correlation Id: aaa57395-50d7-48c3-99e1-f085a44393b5
2022-07-22T08:38:42.0032535Z Removing Session devsrv0101-cu-ori-ci
2022-07-22T08:38:42.3986485Z Removing container devsrv0101-cu-ori-ci
2022-07-22T08:38:45.4500613Z Removing entries from hosts
2022-07-22T08:38:45.4679009Z Removing devsrv0101-cu-ori-ci from container hosts file
2022-07-22T08:38:45.5861935Z Removing devsrv0101-cu-ori-ci-* from container hosts file
2022-07-22T08:38:45.5907785Z Removing Desktop shortcuts
2022-07-22T08:38:45.7691136Z Removing C:\ProgramData\BcContainerHelper\Extensions\devsrv0101-cu-ori-ci
2022-07-22T08:38:46.4608983Z Run-AlPipeline Telemetry Correlation Id: a5117a5e-b1d7-4d76-8fa1-69e241738a7a
2022-07-22T08:38:46.7125638Z ##[error]ForEach-Object : Item has already been added. Key in dictionary: 'f56970b9-9ab0-4f05-8e07-e64392f3c2f7:@{Major=1; Minor
=0; Build=0; Revision=0; MajorRevision=0; MinorRevision=0}'  Key being added: 'f56970b9-9ab0-4f05-8e07-e64392f3c2f7:@{M
ajor=1; Minor=0; Build=0; Revision=0; MajorRevision=0; MinorRevision=0}'
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\3.0.11\AppHandling\Sort-AppFilesByDependencies.ps1:42 c
har:21

+         $appFiles | ForEach-Object {

+                     ~~~~~~~~~~~~~~~~

    + CategoryInfo          : OperationStopped: (:) [ForEach-Object], ArgumentException

    + FullyQualifiedErrorId : System.ArgumentException,Microsoft.PowerShell.Commands.ForEachObjectCommand
2022-07-22T08:38:46.7203596Z ##[error]PowerShell exited with code '1'.
2022-07-22T08:38:46.8678069Z ##[section]Finishing: Run Pipeline
freddydk commented 2 years ago

Ok:-(

I would need a reproable script in order to determine whether this is a bug in Run-AlPipeline that I need to fix - or something in your apps. I haven't had other people with the same problem...

You can email a url where I can download a .zip file to freddyk at microsoft dot com and I will investigate

freddydk commented 2 years ago

Have checked in a fix on issue #2610, where this situation will issue a warning to make it clear what the problem is. -InstallApps and -InstallTestApps cannot have apps with the same filename. The filenames needs to be unique and not (app.app)

freddydk commented 2 years ago

Shipped in 4.0.3