HodorNV / ALOps

ALOps
58 stars 24 forks source link

OS Major version could not be detected #508

Closed Arthurvdv closed 2 years ago

Arthurvdv commented 2 years ago

Describe the bug We're in the process of setting up new BuildServers with based on Windows Server 2022 Standard (21H1), to replace the current the BuildServers with Windows Server 2019 Standard.

The goal here is to have Process isoloation working as intended. Combined with the "PowerShell way" of installing Docker.

image image image (credits @Freddydk)

the used yaml

  - template: build_bc_docker_images.yml
    parameters:
      types: ['Sandbox']
      versions: ['']
      countries: ['w1','be']
      selection: ['Daily']
      licensefile: $(bc-vanroey-dev-license)
parameters:
  types: ['Sandbox']
  versions: ['']
  countries: ['w1']
  selection: ['Current']
  imageprefix: ''
  sastoken: ''
  licensefile: ''
  includetesttoolkit: true
  includetestframeworkonly: true

steps:
- ${{ each type in parameters.types }}:
  - ${{ each version in parameters.versions }}:
    - ${{ each country in parameters.countries }}:
      - ${{ each select in parameters.selection }}:
        - task: ALOpsDockerCreate@1
          displayName: 'Create: ${{ type }}-${{ version }}-${{ country }}-${{ select }}'
          inputs:
            artifacttype: ${{ type }}
            artifactcountry: ${{ country }}
            artifactversion: ${{ version }}
            versionselect: ${{ select }}
            imageprefix: ${{ parameters.imageprefix }}
            sastoken: ${{ parameters.sastoken }}
            includetesttoolkit: ${{ parameters.includetesttoolkit }}
            includetestframeworkonly: ${{ parameters.includetestframeworkonly }}
            licensefile: ${{ parameters.licensefile }}

the output Also the complete output is necessary for us to see what is going on. Also use backtics:

2022-05-16T12:08:45.0308943Z ##[section]Starting: Create: Sandbox--w1-Daily
2022-05-16T12:08:45.0446222Z ==============================================================================
2022-05-16T12:08:45.0446549Z Task         : ALOps Docker Create
2022-05-16T12:08:45.0446839Z Description  : Create Docker image from Business Central Artifacts
2022-05-16T12:08:45.0447118Z Version      : 1.448.2984
2022-05-16T12:08:45.0447299Z Author       : Hodor
2022-05-16T12:08:45.0447555Z Help         : Create Docker image based on NAV/BC Artifacts.
2022-05-16T12:08:45.0447883Z ==============================================================================
2022-05-16T12:08:46.5771894Z *** Validate configuration
2022-05-16T12:08:46.9519412Z *** Task Inputs:
2022-05-16T12:08:46.9531108Z 
2022-05-16T12:08:46.9602822Z name                      value                                                                                        
2022-05-16T12:08:46.9603470Z ----                      -----                                                                                        
2022-05-16T12:08:46.9604467Z artifactspecification     Specific                                                                                     
2022-05-16T12:08:46.9604912Z artifactversion                                                                                                        
2022-05-16T12:08:46.9605515Z artifacttype              Sandbox                                                                                      
2022-05-16T12:08:46.9606050Z artifactcountry           w1                                                                                           
2022-05-16T12:08:46.9606616Z versionselect             Daily                                                                                        
2022-05-16T12:08:46.9607153Z artifacthint                                                                                                           
2022-05-16T12:08:46.9607725Z multitenant               False                                                                                        
2022-05-16T12:08:46.9608352Z memory                    8G                                                                                           
2022-05-16T12:08:46.9609013Z imageprefix                                                                                                            
2022-05-16T12:08:46.9609504Z dockerregistry                                                                                                         
2022-05-16T12:08:46.9610037Z dockerusername                                                                                                         
2022-05-16T12:08:46.9610505Z dockerpassword                                                                                                         
2022-05-16T12:08:46.9611014Z storageaccount                                                                                                         
2022-05-16T12:08:46.9611514Z sastoken                                                                                                               
2022-05-16T12:08:46.9612055Z forcecreateimage          False                                                                                        
2022-05-16T12:08:46.9612562Z myscripts                                                                                                              
2022-05-16T12:08:46.9613300Z imagenametemplate         %IMAGE_PREFIX%:%ARTIFACT_TYPE%-%ARTIFACT_VERSION%-%ARTIFACT_COUNTRY%-%OS_VERSION%-%OS_LTSC%  
2022-05-16T12:08:46.9628482Z licensefile               https://vrabadevops.blob.core.windows.net/default/bc-vanroey-dev-license.flf?sp=r&st=1999-...
2022-05-16T12:08:46.9629350Z includetesttoolkit        True                                                                                         
2022-05-16T12:08:46.9629958Z includetestlibrariesonly  False                                                                                        
2022-05-16T12:08:46.9630584Z includetestframeworkonly  True                                                                                         
2022-05-16T12:08:46.9632831Z includeperformancetoolkit False                                                                                        
2022-05-16T12:08:46.9633497Z 
2022-05-16T12:08:46.9646808Z 
2022-05-16T12:08:46.9654156Z 
2022-05-16T12:08:46.9776033Z *** For documentation, please visit   : https://www.alops.be/documentation
2022-05-16T12:08:46.9778065Z 
2022-05-16T12:08:47.3546145Z *** ALOps License:
2022-05-16T12:08:47.3555397Z   * Licensed To: Van Roey (Collection License)
2022-05-16T12:08:47.3650752Z 
2022-05-16T12:08:47.4199717Z *** Importing required PS-Functions
2022-05-16T12:08:47.7413850Z *** Install/Update BCContainerHelper [https://github.com/microsoft/navcontainerhelper]
2022-05-16T12:08:47.7450952Z *** Check BcContainerHelper
2022-05-16T12:08:47.7757699Z *** Load BcContainerHelper
2022-05-16T12:08:47.9359459Z BcContainerHelper version 3.0.7
2022-05-16T12:08:47.9408226Z BcContainerHelper emits usage statistics telemetry to Microsoft
2022-05-16T12:08:48.4650482Z 
2022-05-16T12:08:48.4651281Z ModuleType Version    Name                                ExportedCommands                                             
2022-05-16T12:08:48.4651689Z ---------- -------    ----                                ----------------                                             
2022-05-16T12:08:48.4652158Z Script     3.0.7      BcContainerHelper                   {Add-FontsToBcContainer, Add-GitToAlProjectFolder, Backup-...
2022-05-16T12:08:48.4652413Z 
2022-05-16T12:08:48.4652495Z 
2022-05-16T12:08:48.4652585Z 
2022-05-16T12:08:48.4654597Z 
2022-05-16T12:08:48.4693136Z *** Get Artifact Url for Version [] / Country [w1] / Type [Sandbox]: Daily
2022-05-16T12:08:48.4762058Z ##[command]"Get-BCArtifactUrl" 
2022-05-16T12:08:48.4762655Z Name                           Value                                                                                   
2022-05-16T12:08:48.4763154Z ----                           -----                                                                                   
2022-05-16T12:08:48.4763574Z select                         Daily                                                                                   
2022-05-16T12:08:48.4763989Z type                           Sandbox                                                                                 
2022-05-16T12:08:48.4764393Z country                        w1                                                                                      
2022-05-16T12:08:48.4764628Z 
2022-05-16T12:08:48.4764804Z 
2022-05-16T12:08:48.4764974Z 
2022-05-16T12:09:08.6021338Z *** Artifact Url: [https://bcartifacts.azureedge.net/sandbox/20.1.39764.40594/w1]
2022-05-16T12:09:08.6067583Z *** Build new Image based on [https://bcartifacts.azureedge.net/sandbox/20.1.39764.40594/w1]
2022-05-16T12:09:08.6070146Z *** Artifact Type   : [sandbox]
2022-05-16T12:09:08.6076226Z *** Artifact Version: [20.1.39764.40594]
2022-05-16T12:09:08.6121079Z *** Artifact Country: [w1]
2022-05-16T12:09:08.9183717Z ##[warning]OS Major version could not be detected [Microsoft Windows Server 2022 Standard]
2022-05-16T12:09:08.9194238Z *** OS: [2019]
2022-05-16T12:09:10.3302939Z *** OS version: [10.0.20348.643]
2022-05-16T12:09:10.3329462Z *** Image Template: [%IMAGE_PREFIX%:%ARTIFACT_TYPE%-%ARTIFACT_VERSION%-%ARTIFACT_COUNTRY%-%OS_VERSION%-%OS_LTSC%]
2022-05-16T12:09:10.3353341Z *** ImageName: [myimage:sandbox-20.1.39764.40594-w1-10.0.20348.643-ltsc2019]
2022-05-16T12:09:10.3359012Z *** Set Pipeline variable $(ALOPS_BC_IMAGE) = 'myimage:sandbox-20.1.39764.40594-w1-10.0.20348.643-ltsc2019'
2022-05-16T12:09:10.4696928Z Error: No such image: myimage:sandbox-20.1.39764.40594-w1-10.0.20348.643-ltsc2019
2022-05-16T12:09:10.4774898Z *** No 'MyScripts' specified, skipping parse.
2022-05-16T12:09:10.4792112Z *** Create Image: myimage:sandbox-20.1.39764.40594-w1-10.0.20348.643-ltsc2019
2022-05-16T12:09:10.4793570Z ##[command]"New-BcImage" 
2022-05-16T12:09:10.4794992Z Name                           Value                                                                                   
2022-05-16T12:09:10.4795567Z ----                           -----                                                                                   
2022-05-16T12:09:10.4796129Z includePerformanceToolkit      False                                                                                   
2022-05-16T12:09:10.4796791Z artifactUrl                    https://bcartifacts.azureedge.net/sandbox/20.1.39764.40594/w1                           
2022-05-16T12:09:10.4797521Z licenseFile                    https://vrabadevops.blob.core.windows.net/default/bc-vanroey-dev-license.flf?sp=r&st=...
2022-05-16T12:09:10.4798161Z includeTestToolkit             True                                                                                    
2022-05-16T12:09:10.4798772Z memory                         8G                                                                                      
2022-05-16T12:09:10.4801823Z includeTestFrameworkOnly       True                                                                                    
2022-05-16T12:09:10.4802503Z multitenant                    False                                                                                   
2022-05-16T12:09:10.4803057Z imageName                      myimage:sandbox-20.1.39764.40594-w1-10.0.20348.643-ltsc2019                             
2022-05-16T12:09:10.4803611Z includeTestLibrariesOnly       False                                                                                   
2022-05-16T12:09:10.4803879Z 
2022-05-16T12:09:10.4804055Z 
2022-05-16T12:09:10.4804276Z 
2022-05-16T12:09:10.6777593Z Downloading application artifact /sandbox/20.1.39764.40594/w1
2022-05-16T12:09:10.6846590Z Downloading C:\Windows\TEMP\b0be085a-f97c-4aed-8ceb-92832636b0e5.zip
2022-05-16T12:09:27.0227571Z Unpacking application artifact to tmp folder using Expand-Archive
2022-05-16T12:09:31.7921756Z Downloading platform artifact /sandbox/20.1.39764.40594/platform
2022-05-16T12:09:31.7939785Z Downloading C:\Windows\TEMP\f9cb55c4-22b2-4cd2-894c-9307ea4e42af.zip
2022-05-16T12:09:57.6889417Z Unpacking platform artifact to tmp folder using Expand-Archive
2022-05-16T12:10:51.7582138Z Downloading Prerequisite Components
2022-05-16T12:10:51.7666273Z Downloading c:\bcartifacts.cache\sandbox\20.1.39764.40594\platform\Prerequisite Components\Open XML SDK 2.5 for Microsoft Office\OpenXMLSDKv25.msi
2022-05-16T12:10:51.9813564Z Downloading c:\bcartifacts.cache\sandbox\20.1.39764.40594\platform\Prerequisite Components\IIS URL Rewrite Module\rewrite_2.0_rtw_x64.msi
2022-05-16T12:10:52.4013478Z Downloading c:\bcartifacts.cache\sandbox\20.1.39764.40594\platform\Prerequisite Components\DotNetCore\DotNetCore.1.0.4_1.1.1-WindowsHosting.exe
2022-05-16T12:10:55.8917055Z Building image myimage:sandbox-20.1.39764.40594-w1-10.0.20348.643-ltsc2019 based on mcr.microsoft.com/businesscentral:10.0.20348.643 with https://bcartifacts.azureedge.net/sandbox/20.1.39764.40594/w1
2022-05-16T12:10:55.9252374Z Pulling latest image mcr.microsoft.com/businesscentral:10.0.20348.643
2022-05-16T12:10:56.5031906Z 10.0.20348.643: Pulling from businesscentral
2022-05-16T12:10:56.7780579Z 8f616e6e9eec: Pulling fs layer
2022-05-16T12:10:56.7792700Z dccd9e4d14d3: Pulling fs layer
2022-05-16T12:10:56.7801942Z 8d4b584f03cc: Pulling fs layer
2022-05-16T12:10:56.7807398Z 7e4e430d0a9e: Pulling fs layer
2022-05-16T12:10:56.7815523Z 7a8b4d72ab4d: Pulling fs layer
2022-05-16T12:10:56.7823434Z d4db665403b1: Pulling fs layer
2022-05-16T12:10:56.7831319Z 22e41d1dff0a: Pulling fs layer
2022-05-16T12:10:56.7835986Z a80932856739: Pulling fs layer
2022-05-16T12:10:56.8073660Z f762d01fc802: Pulling fs layer
2022-05-16T12:10:56.8085486Z 0805e26adbe2: Pulling fs layer
2022-05-16T12:10:56.8098405Z ccf8ae1fe4fb: Pulling fs layer
2022-05-16T12:10:56.8103406Z ceb77bf36361: Pulling fs layer
2022-05-16T12:10:56.8111213Z e24f3f499071: Pulling fs layer
2022-05-16T12:10:56.8116129Z bc1bf7811485: Pulling fs layer
2022-05-16T12:10:56.8121539Z ef0a1f7aa28a: Pulling fs layer
2022-05-16T12:10:56.8555662Z f762d01fc802: Waiting
2022-05-16T12:10:56.8561110Z 0805e26adbe2: Waiting
2022-05-16T12:10:56.8565478Z ccf8ae1fe4fb: Waiting
2022-05-16T12:10:56.8574412Z ceb77bf36361: Waiting
2022-05-16T12:10:56.8579738Z e24f3f499071: Waiting
2022-05-16T12:10:56.8585336Z bc1bf7811485: Waiting
2022-05-16T12:10:56.8589935Z ef0a1f7aa28a: Waiting
2022-05-16T12:10:56.8595022Z 7e4e430d0a9e: Waiting
2022-05-16T12:10:56.8599476Z 7a8b4d72ab4d: Waiting
2022-05-16T12:10:56.8604839Z d4db665403b1: Waiting
2022-05-16T12:10:56.8810617Z 22e41d1dff0a: Waiting
2022-05-16T12:10:56.8821659Z a80932856739: Waiting
2022-05-16T12:10:57.0805799Z 8d4b584f03cc: Verifying Checksum
2022-05-16T12:10:57.0811734Z 8d4b584f03cc: Download complete
2022-05-16T12:11:02.3798389Z 7e4e430d0a9e: Verifying Checksum
2022-05-16T12:11:02.3806655Z 7e4e430d0a9e: Download complete
2022-05-16T12:11:03.2908566Z 7a8b4d72ab4d: Verifying Checksum
2022-05-16T12:11:03.2918940Z 7a8b4d72ab4d: Download complete
2022-05-16T12:11:03.4831599Z d4db665403b1: Verifying Checksum
2022-05-16T12:11:03.4841714Z d4db665403b1: Download complete
2022-05-16T12:11:03.6395037Z 22e41d1dff0a: Verifying Checksum
2022-05-16T12:11:03.6400622Z 22e41d1dff0a: Download complete
2022-05-16T12:11:03.8183049Z a80932856739: Verifying Checksum
2022-05-16T12:11:03.8194709Z a80932856739: Download complete
2022-05-16T12:11:13.9431485Z dccd9e4d14d3: Download complete
2022-05-16T12:11:14.1371852Z 0805e26adbe2: Verifying Checksum
2022-05-16T12:11:14.1377567Z 0805e26adbe2: Download complete
2022-05-16T12:11:16.0493955Z f762d01fc802: Verifying Checksum
2022-05-16T12:11:16.0499893Z f762d01fc802: Download complete
2022-05-16T12:11:16.1843044Z ceb77bf36361: Verifying Checksum
2022-05-16T12:11:16.1849620Z ceb77bf36361: Download complete
2022-05-16T12:11:16.3736190Z e24f3f499071: Verifying Checksum
2022-05-16T12:11:16.3742329Z e24f3f499071: Download complete
2022-05-16T12:11:16.5609203Z bc1bf7811485: Verifying Checksum
2022-05-16T12:11:16.5615482Z bc1bf7811485: Download complete
2022-05-16T12:11:16.7190786Z ef0a1f7aa28a: Verifying Checksum
2022-05-16T12:11:16.7195563Z ef0a1f7aa28a: Download complete
2022-05-16T12:11:24.3982476Z 8f616e6e9eec: Verifying Checksum
2022-05-16T12:11:24.3991744Z 8f616e6e9eec: Download complete
2022-05-16T12:11:30.8985472Z ccf8ae1fe4fb: Verifying Checksum
2022-05-16T12:11:30.8994410Z ccf8ae1fe4fb: Download complete
2022-05-16T12:12:38.2325372Z 8f616e6e9eec: Pull complete
2022-05-16T12:14:12.7255321Z dccd9e4d14d3: Pull complete
2022-05-16T12:14:12.9578787Z 8d4b584f03cc: Pull complete
2022-05-16T12:14:32.0191837Z 7e4e430d0a9e: Pull complete
2022-05-16T12:14:32.2218781Z 7a8b4d72ab4d: Pull complete
2022-05-16T12:14:32.4234219Z d4db665403b1: Pull complete
2022-05-16T12:14:32.6269980Z 22e41d1dff0a: Pull complete
2022-05-16T12:14:32.8325987Z a80932856739: Pull complete
2022-05-16T12:15:00.0047463Z f762d01fc802: Pull complete
2022-05-16T12:15:00.5871506Z 0805e26adbe2: Pull complete
2022-05-16T12:15:16.5476412Z ccf8ae1fe4fb: Pull complete
2022-05-16T12:15:16.8112348Z ceb77bf36361: Pull complete
2022-05-16T12:15:17.0286879Z e24f3f499071: Pull complete
2022-05-16T12:15:17.2322832Z bc1bf7811485: Pull complete
2022-05-16T12:15:17.4359421Z ef0a1f7aa28a: Pull complete
2022-05-16T12:15:17.4448094Z Digest: sha256:6109e8021486b29fae895410629867541a0f0515bd6228a06129f61a99906445
2022-05-16T12:15:17.4485416Z Status: Downloaded newer image for mcr.microsoft.com/businesscentral:10.0.20348.643
2022-05-16T12:15:17.4524482Z mcr.microsoft.com/businesscentral:10.0.20348.643
2022-05-16T12:15:17.9687548Z Generic Tag: 1.0.2.1
2022-05-16T12:15:18.0127186Z Container OS Version: 10.0.20348.643 (ltsc2022)
2022-05-16T12:15:18.0132481Z Host OS Version: 10.0.20348.707 (ltsc2022)
2022-05-16T12:15:18.0153663Z Using process isolation
2022-05-16T12:15:18.0186032Z Using license file https://vrabadevops.blob.core.windows.net/default/bc-vanroey-dev-license.flf
2022-05-16T12:15:18.0204595Z Downloading c:\bcartifacts.cache\wt5haijz.yhd\my\license.flf
2022-05-16T12:15:18.3420777Z Files in c:\bcartifacts.cache\wt5haijz.yhd\my:
2022-05-16T12:15:18.3448402Z - license.flf
2022-05-16T12:15:18.3496164Z Copying Platform Artifacts
2022-05-16T12:15:18.3504615Z c:\bcartifacts.cache\sandbox\20.1.39764.40594\platform
2022-05-16T12:15:22.8363809Z Copying Database
2022-05-16T12:15:23.0996704Z Copying Licensefile
2022-05-16T12:15:23.1047363Z Copying Extensions
2022-05-16T12:15:23.1054090Z C:\bcartifacts.cache\sandbox\20.1.39764.40594\w1\Extensions
2022-05-16T12:15:23.2571023Z c:\bcartifacts.cache\wt5haijz.yhd
2022-05-16T12:15:34.6510694Z Sending build context to Docker daemon  1.988GB
2022-05-16T12:15:34.6518511Z 
2022-05-16T12:15:34.7065150Z Step 1/6 : FROM mcr.microsoft.com/businesscentral:10.0.20348.643
2022-05-16T12:15:34.7070137Z  ---> 7bf65e4ad9fe
2022-05-16T12:15:34.7073433Z Step 2/6 : ENV DatabaseServer=localhost DatabaseInstance=SQLEXPRESS DatabaseName=CRONUS IsBcSandbox=Y artifactUrl=https://bcartifacts.azureedge.net/sandbox/20.1.39764.40594/w1 filesOnly=False
2022-05-16T12:15:34.7262624Z  ---> Running in ab8fb768eb28
2022-05-16T12:15:35.4294125Z Removing intermediate container ab8fb768eb28
2022-05-16T12:15:35.4301331Z  ---> 1cab061cefc2
2022-05-16T12:15:35.4343743Z Step 3/6 : COPY my /run/
2022-05-16T12:15:35.7140044Z  ---> de8f466a3d4a
2022-05-16T12:15:35.7141488Z Step 4/6 : COPY NAVDVD /NAVDVD/
2022-05-16T12:16:07.0320601Z  ---> 2fead2c4a0f3
2022-05-16T12:16:07.0322220Z Step 5/6 : RUN \Run\start.ps1 -installOnly -includeTestToolkit -includeTestFrameworkOnly
2022-05-16T12:16:07.0494418Z  ---> Running in 2fcf8c3bc045
2022-05-16T12:16:19.0839265Z Using installer from C:\Run\150-new
2022-05-16T12:16:19.2210331Z Installing Business Central
2022-05-16T12:16:19.2295138Z Installing from DVD
2022-05-16T12:16:19.2446192Z Starting Local SQL Server
2022-05-16T12:16:26.8061413Z Starting Internet Information Server
2022-05-16T12:16:27.2054294Z Copying Service Tier Files
2022-05-16T12:16:27.2143560Z C:\NAVDVD\ServiceTier\Program Files
2022-05-16T12:16:28.6488753Z C:\NAVDVD\ServiceTier\System64Folder
2022-05-16T12:16:28.6749145Z Copying PowerShell Scripts
2022-05-16T12:16:28.6753216Z C:\NAVDVD\WindowsPowerShellScripts\Cloud\NAVAdministration
2022-05-16T12:16:28.7606542Z C:\NAVDVD\WindowsPowerShellScripts\WebSearch
2022-05-16T12:16:29.9975380Z Copying dependencies
2022-05-16T12:16:30.1855901Z Copying ReportBuilder
2022-05-16T12:16:30.3103897Z Importing PowerShell Modules
2022-05-16T12:16:30.7850487Z Determining Database Collation
2022-05-16T12:16:39.8260314Z Restoring CRONUS Demo Database
2022-05-16T12:16:43.5867553Z Setting CompatibilityLevel for CRONUS on localhost\SQLEXPRESS
2022-05-16T12:16:44.4913330Z Modifying Business Central Service Tier Config File for Docker
2022-05-16T12:16:44.5049855Z Creating Business Central Service Tier
2022-05-16T12:16:44.7967602Z Installing SIP crypto provider: 'C:\Windows\System32\NavSip.dll'
2022-05-16T12:16:50.2159346Z Copying Web Client Files
2022-05-16T12:16:50.2160057Z C:\NAVDVD\WebClient\Microsoft Dynamics NAV
2022-05-16T12:16:50.2163663Z Copying Client Files
2022-05-16T12:16:50.2165544Z C:\NAVDVD\LegacyDlls\program files\Microsoft Dynamics NAV
2022-05-16T12:16:50.2170056Z C:\NAVDVD\LegacyDlls\program files\Microsoft Dynamics NAV
2022-05-16T12:16:50.2173526Z C:\NAVDVD\LegacyDlls\systemFolder
2022-05-16T12:16:50.2176152Z Copying ModernDev Files
2022-05-16T12:16:50.2179105Z C:\NAVDVD
2022-05-16T12:16:50.2182339Z C:\NAVDVD\ModernDev\program files\Microsoft Dynamics NAV
2022-05-16T12:16:50.2185579Z Copying additional files
2022-05-16T12:16:50.2188783Z Copying ConfigurationPackages
2022-05-16T12:16:50.2192208Z C:\NAVDVD\ConfigurationPackages
2022-05-16T12:16:50.2194661Z Copying Test Assemblies
2022-05-16T12:16:50.2198215Z C:\NAVDVD\Test Assemblies
2022-05-16T12:16:50.2201522Z Copying Extensions
2022-05-16T12:16:50.2203992Z C:\NAVDVD\Extensions
2022-05-16T12:16:50.2208274Z Copying Applications
2022-05-16T12:16:50.2212188Z C:\NAVDVD\Applications
2022-05-16T12:16:50.2622672Z Starting Business Central Service Tier
2022-05-16T12:18:28.0789714Z Importing CRONUS license file
2022-05-16T12:18:30.3261956Z Any is already published
2022-05-16T12:18:30.3267094Z Synchronizing Any
2022-05-16T12:18:30.9896941Z Installing Any
2022-05-16T12:18:51.3677085Z Library Assert is already published
2022-05-16T12:18:51.3682586Z Synchronizing Library Assert
2022-05-16T12:18:51.3957137Z Installing Library Assert
2022-05-16T12:18:51.5765944Z Permissions Mock is already published
2022-05-16T12:18:51.5769418Z Synchronizing Permissions Mock
2022-05-16T12:18:51.6040281Z Installing Permissions Mock
2022-05-16T12:18:51.7710699Z Library Variable Storage is already published
2022-05-16T12:18:51.7713957Z Synchronizing Library Variable Storage
2022-05-16T12:18:51.8003583Z Installing Library Variable Storage
2022-05-16T12:18:51.9655100Z Test Runner is already published
2022-05-16T12:18:51.9659329Z Synchronizing Test Runner
2022-05-16T12:18:52.5450580Z Installing Test Runner
2022-05-16T12:18:53.1158268Z Stopping Business Central Service Tier
2022-05-16T12:18:53.3887637Z Installation took 154 seconds
2022-05-16T12:18:53.3949178Z Installation complete
2022-05-16T12:20:49.0501684Z Removing intermediate container 2fcf8c3bc045
2022-05-16T12:20:49.0503723Z  ---> 9f1de859f7dc
2022-05-16T12:20:49.0504668Z Step 6/6 : LABEL legal="http://go.microsoft.com/fwlink/?LinkId=837447"       created="202205161215"       nav=""       cu=""       country="W1"       version="20.1.39764.40594"       platform="20.0.39668.40484"
2022-05-16T12:20:49.0680899Z  ---> Running in fa4158579800
2022-05-16T12:20:49.3862643Z Removing intermediate container fa4158579800
2022-05-16T12:20:49.3865488Z  ---> 3dc99b062d1c
2022-05-16T12:20:50.2815902Z Successfully built 3dc99b062d1c
2022-05-16T12:20:50.2998418Z Successfully tagged myimage:sandbox-20.1.39764.40594-w1-10.0.20348.643-ltsc2019
2022-05-16T12:20:50.3110472Z Building image took 594 seconds
2022-05-16T12:20:52.5087377Z *** Created Image: myimage:sandbox-20.1.39764.40594-w1-10.0.20348.643-ltsc2019
2022-05-16T12:20:52.5097127Z *** No Docker Registry specified
2022-05-16T12:20:52.5099609Z *** Docker Create Succeeded.
2022-05-16T12:20:52.5250142Z *** Cleanup VSTS Environment: True
2022-05-16T12:20:54.6437444Z ##[section]Finishing: Create: Sandbox--w1-Daily

Expected behavior Detecting the right OS version (and not thrown an warning)

Screenshots image

Additional context It's a VM to test this version of Windows, our other BuildServers are physically machines.

waldo1001 commented 2 years ago

Fixed in next release (this week)

AdminHodor commented 2 years ago

v1.449: ALOpsDockerCreate: OS Detection for Windows Server 2019 (2022)

Arthurvdv commented 2 years ago

Thanks, will check next week and report back.

Arthurvdv commented 2 years ago
*** Artifact Url: [https://bcartifacts.azureedge.net/sandbox/20.1.39764.41349/w1]
*** Build new Image based on [https://bcartifacts.azureedge.net/sandbox/20.1.39764.41349/w1]
*** Artifact Type   : [sandbox]
*** Artifact Version: [20.1.39764.41349]
*** Artifact Country: [w1]
*** OS: [2022]
*** OS version: [10.0.20348.707]
*** Image Template: [%IMAGE_PREFIX%:%ARTIFACT_TYPE%-%ARTIFACT_VERSION%-%ARTIFACT_COUNTRY%-%OS_VERSION%-%OS_LTSC%]
*** ImageName: [myimage:sandbox-20.1.39764.41349-w1-10.0.20348.707-ltsc2022]

and

mcr.microsoft.com/businesscentral:10.0.20348.707
Generic Tag: 1.0.2.7
Container OS Version: 10.0.20348.707 (ltsc2022)
Host OS Version: 10.0.20348.707 (ltsc2022)
Using process isolation

The detection of the OS and process isolation seems to be working, thanks!