microsoft / navcontainerhelper

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

Dependencies in build pipelines #1876

Closed mabessghaier closed 3 years ago

mabessghaier commented 3 years ago

We're using a dependencies with free partner App in our extensions. I downloaded a latest available version 1.3.7723.3 for BC 17.5. The App compile correctly from vs code, however I get an error when using Freddy's script for build pipeline, image

I added a secure url with the app file in the setting installApps as shown below image

Scripts used to create container and cause the issue

trigger:
- master

pool: Business Central

variables:
- group: BuildVariables3

jobs:
- job: Build
  timeoutInMinutes: 300
  variables:
    build.clean: all
    platform: x64
    version: 'ci'
    appVersion: '2.0'
    appBuild: 1
    appRevision: $(Build.BuildID)
    skipComponentGovernanceDetection: True

  steps:
  - task: PowerShell@2
    displayName: 'Set BuildNumber'
    inputs:
      targetType: inline
      script: 'Write-Host "##vso[build.updatebuildnumber]$(appVersion).$(appBuild).$(appRevision)"'

  - task: PowerShell@2
    displayName: 'Run Pipeline'
    env:
      InsiderSasToken: '$(InsiderSasToken)'
      LicenseFile: '$(LicenseFile)'
      CodeSignCertPfxFile: '$(CodeSignCertPfxFile)'
      CodeSignCertPfxPassword: '$(CodeSignCertPfxPassword)'
    inputs:
      targetType: filePath
      filePath: 'scripts\DevOps-Pipeline.ps1'
      arguments: '-environment "AzureDevOps" -version "$(version)" -appBuild $(appBuild) -appRevision $(appRevision)'
      failOnStderr: true

  - task: PublishTestResults@2
    displayName: 'Publish Test Results'
    condition: and(succeeded(),ne(variables['TestResults'],''))
    inputs:
      testResultsFormat: JUnit
      testResultsFiles: '$(testResults)'
      failTaskOnFailedTests: true

  - task: PublishBuildArtifacts@1
    displayName: 'Publish Artifacts'
    inputs:
      PathtoPublish: '$(Build.ArtifactStagingDirectory)'
      ArtifactName: output

  - task: PowerShell@2
    displayName: 'Cleanup'
    condition: always()
    inputs:
      targetType: filePath
      filePath: 'scripts\Cleanup.ps1'
      arguments: '-environment "AzureDevOps"'
      failOnStderr: false

**Full output of scripts**
2021-04-06T17:21:13.7720046Z ##[section]Starting: Build
2021-04-06T17:21:14.1671804Z ##[section]Starting: Initialize job
2021-04-06T17:21:14.1673795Z Agent name: 'CICD'
2021-04-06T17:21:14.1674187Z Agent machine name: 'bcpipeline'
2021-04-06T17:21:14.1674434Z Current agent version: '2.179.0'
2021-04-06T17:21:14.1703840Z Agent running as: 'bcpipeline$'
2021-04-06T17:21:14.1745773Z Prepare build directory.
2021-04-06T17:21:14.3185337Z Set build variables.
2021-04-06T17:21:14.3221687Z Download all required tasks.
2021-04-06T17:21:14.3514191Z Checking job knob settings.
2021-04-06T17:21:14.3522847Z Finished checking job knob settings.
2021-04-06T17:21:14.4016083Z Start tracking orphan processes.
2021-04-06T17:21:14.4127818Z ##[section]Finishing: Initialize job
2021-04-06T17:21:14.4688102Z ##[section]Starting: Download secrets: BuildVariables3
2021-04-06T17:21:14.5435119Z ==============================================================================
2021-04-06T17:21:14.5435767Z Task         : Azure Key Vault
2021-04-06T17:21:14.5436264Z Description  : Download Azure Key Vault secrets
2021-04-06T17:21:14.5436536Z Version      : 1.182.1
2021-04-06T17:21:14.5436924Z Author       : Microsoft Corporation
2021-04-06T17:21:14.5437429Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-key-vault
2021-04-06T17:21:14.5437809Z ==============================================================================
2021-04-06T17:21:15.0218585Z ##[section]Finishing: Download secrets: BuildVariables3
2021-04-06T17:21:15.0362497Z ##[section]Starting: Download secrets: BuildVariables3
2021-04-06T17:21:15.0505312Z ==============================================================================
2021-04-06T17:21:15.0505645Z Task         : Azure Key Vault
2021-04-06T17:21:15.0505895Z Description  : Download Azure Key Vault secrets
2021-04-06T17:21:15.0506154Z Version      : 1.182.1
2021-04-06T17:21:15.0506375Z Author       : Microsoft Corporation
2021-04-06T17:21:15.0506709Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-key-vault
2021-04-06T17:21:15.0507095Z ==============================================================================
2021-04-06T17:21:16.2486133Z SubscriptionId: 8be8077b-33e6-4806-b7a1-582580b6c74f.
2021-04-06T17:21:16.2488484Z Key vault name: BuildVariables3.
2021-04-06T17:21:16.2503364Z Downloading secret value for: LicenseFile.
2021-04-06T17:21:16.2731553Z Downloading secret value for: PublisherAppClientID.
2021-04-06T17:21:16.2732857Z Downloading secret value for: PublisherAppClientSecret.
2021-04-06T17:21:16.7088324Z ##[section]Finishing: Download secrets: BuildVariables3
2021-04-06T17:21:16.7226797Z ##[section]Starting: Checkout GoGestisoft Report@master to s
2021-04-06T17:21:16.7375922Z ==============================================================================
2021-04-06T17:21:16.7376276Z Task         : Get sources
2021-04-06T17:21:16.7376602Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2021-04-06T17:21:16.7376954Z Version      : 1.0.0
2021-04-06T17:21:16.7377183Z Author       : Microsoft
2021-04-06T17:21:16.7378407Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2021-04-06T17:21:16.7378786Z ==============================================================================
2021-04-06T17:21:17.2156910Z Syncing repository: GoGestisoft Report (Git)
2021-04-06T17:21:17.2264031Z Prepending Path environment variable with directory containing 'git.exe'.
2021-04-06T17:21:17.2323570Z ##[command]git version
2021-04-06T17:21:17.3278201Z git version 2.28.0.windows.1
2021-04-06T17:21:17.3614674Z ##[command]git init "C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\1\s"
2021-04-06T17:21:17.4726771Z Initialized empty Git repository in C:/Users/vmadmin/Desktop/vsts-agent-win-x64-2.179.0 new/_work/1/s/.git/
2021-04-06T17:21:17.4825140Z ##[command]git remote add origin https://GestisoftInterne@dev.azure.com/GestisoftInterne/GoGestisoft/_git/GoGestisoft%2520Report
2021-04-06T17:21:17.6113369Z ##[command]git config gc.auto 0
2021-04-06T17:21:17.7106615Z ##[command]git config --get-all http.https://GestisoftInterne@dev.azure.com/GestisoftInterne/GoGestisoft/_git/GoGestisoft%2520Report.extraheader
2021-04-06T17:21:17.8123425Z ##[command]git config --get-all http.proxy
2021-04-06T17:21:17.8733904Z ##[command]git config http.version HTTP/1.1
2021-04-06T17:21:17.9408392Z ##[command]git -c http.extraheader="AUTHORIZATION: bearer ***" fetch --force --tags --prune --progress --no-recurse-submodules origin
2021-04-06T17:21:18.3488972Z remote: Azure Repos        
2021-04-06T17:21:18.4230808Z remote: 
2021-04-06T17:21:18.4231811Z remote: Found 605 objects to send. (86 ms)        
2021-04-06T17:21:19.5348613Z Receiving objects:   0% (1/605)
2021-04-06T17:21:19.7702157Z Receiving objects:   0% (2/605), 28.31 MiB | 26.49 MiB/s
2021-04-06T17:21:19.9056899Z Receiving objects:   1% (7/605), 28.31 MiB | 26.49 MiB/s
2021-04-06T17:21:20.0474332Z Receiving objects:   2% (13/605), 28.31 MiB | 26.49 MiB/s
2021-04-06T17:21:20.0509099Z Receiving objects:   3% (19/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.0545710Z Receiving objects:   4% (25/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.0589114Z Receiving objects:   5% (31/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.1195315Z Receiving objects:   6% (37/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.1198934Z Receiving objects:   7% (43/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.1204723Z Receiving objects:   8% (49/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.1209395Z Receiving objects:   9% (55/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.2174583Z Receiving objects:  10% (61/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.3151506Z Receiving objects:  11% (67/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.3186974Z Receiving objects:  12% (73/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.3187625Z Receiving objects:  13% (79/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.3464818Z Receiving objects:  14% (85/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.3547425Z Receiving objects:  15% (91/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.3556081Z Receiving objects:  16% (97/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.3563314Z Receiving objects:  17% (103/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.3581052Z Receiving objects:  18% (109/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.4438085Z Receiving objects:  19% (115/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:20.5351503Z Receiving objects:  20% (121/605), 40.87 MiB | 26.06 MiB/s
2021-04-06T17:21:21.3013348Z Receiving objects:  20% (121/605), 52.01 MiB | 25.14 MiB/s
2021-04-06T17:21:21.3026783Z Receiving objects:  21% (128/605), 70.59 MiB | 27.48 MiB/s
2021-04-06T17:21:21.3031042Z Receiving objects:  22% (134/605), 70.59 MiB | 27.48 MiB/s
2021-04-06T17:21:21.3039886Z Receiving objects:  23% (140/605), 70.59 MiB | 27.48 MiB/s
2021-04-06T17:21:21.3223002Z Receiving objects:  24% (146/605), 70.59 MiB | 27.48 MiB/s
2021-04-06T17:21:21.3242005Z Receiving objects:  25% (152/605), 70.59 MiB | 27.48 MiB/s
2021-04-06T17:21:21.3369096Z Receiving objects:  26% (158/605), 70.59 MiB | 27.48 MiB/s
2021-04-06T17:21:21.5349292Z Receiving objects:  27% (164/605), 70.59 MiB | 27.48 MiB/s
2021-04-06T17:21:22.7495352Z Receiving objects:  27% (166/605), 90.37 MiB | 29.45 MiB/s
2021-04-06T17:21:22.7497386Z Receiving objects:  28% (170/605), 110.84 MiB | 31.06 MiB/s
2021-04-06T17:21:22.7507404Z Receiving objects:  29% (176/605), 110.84 MiB | 31.06 MiB/s
2021-04-06T17:21:22.7509930Z Receiving objects:  30% (182/605), 110.84 MiB | 31.06 MiB/s
2021-04-06T17:21:23.1343231Z Receiving objects:  30% (184/605), 124.60 MiB | 30.62 MiB/s
2021-04-06T17:21:23.2417447Z Receiving objects:  31% (188/605), 145.11 MiB | 31.76 MiB/s
2021-04-06T17:21:23.2454035Z Receiving objects:  32% (194/605), 145.11 MiB | 31.76 MiB/s
2021-04-06T17:21:23.2612372Z Receiving objects:  33% (200/605), 145.11 MiB | 31.76 MiB/s
2021-04-06T17:21:23.2624444Z Receiving objects:  34% (206/605), 145.11 MiB | 31.76 MiB/s
2021-04-06T17:21:23.5359628Z Receiving objects:  35% (212/605), 145.11 MiB | 31.76 MiB/s
2021-04-06T17:21:24.1057631Z Receiving objects:  35% (216/605), 160.32 MiB | 32.50 MiB/s
2021-04-06T17:21:24.1224984Z Receiving objects:  36% (218/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1228641Z Receiving objects:  37% (224/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1234617Z Receiving objects:  38% (230/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1239112Z Receiving objects:  39% (236/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1259701Z Receiving objects:  40% (242/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1267024Z Receiving objects:  41% (249/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1270666Z Receiving objects:  42% (255/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1288252Z Receiving objects:  43% (261/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1480010Z Receiving objects:  44% (267/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1771817Z Receiving objects:  45% (273/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1788732Z Receiving objects:  46% (279/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:24.1961013Z Receiving objects:  47% (285/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:25.0428614Z Receiving objects:  48% (291/605), 182.82 MiB | 34.34 MiB/s
2021-04-06T17:21:25.0442109Z Receiving objects:  48% (292/605), 188.51 MiB | 29.49 MiB/s
2021-04-06T17:21:25.0445852Z Receiving objects:  49% (297/605), 188.51 MiB | 29.49 MiB/s
2021-04-06T17:21:25.5428000Z Receiving objects:  50% (303/605), 188.51 MiB | 29.49 MiB/s
2021-04-06T17:21:25.9985682Z Receiving objects:  50% (306/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:25.9988552Z Receiving objects:  51% (309/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:25.9990346Z Receiving objects:  52% (315/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:25.9991831Z Receiving objects:  53% (321/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:25.9992622Z Receiving objects:  54% (327/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:25.9993239Z Receiving objects:  55% (333/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:25.9993868Z Receiving objects:  56% (339/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:25.9995360Z Receiving objects:  57% (345/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:25.9997274Z Receiving objects:  58% (351/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:25.9999127Z Receiving objects:  59% (357/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0001100Z Receiving objects:  60% (363/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0002730Z Receiving objects:  61% (370/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0003417Z Receiving objects:  62% (376/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0004561Z Receiving objects:  63% (382/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0005738Z Receiving objects:  64% (388/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0006644Z Receiving objects:  65% (394/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0008123Z Receiving objects:  66% (400/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0009844Z Receiving objects:  67% (406/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0012652Z Receiving objects:  68% (412/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0013523Z Receiving objects:  69% (418/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0014868Z Receiving objects:  70% (424/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0015484Z Receiving objects:  71% (430/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0016345Z Receiving objects:  72% (436/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0017592Z Receiving objects:  73% (442/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0018422Z Receiving objects:  74% (448/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0019818Z Receiving objects:  75% (454/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0022731Z Receiving objects:  76% (460/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0025401Z Receiving objects:  77% (466/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0027149Z Receiving objects:  78% (472/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0028664Z Receiving objects:  79% (478/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0032376Z Receiving objects:  80% (484/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0033869Z Receiving objects:  81% (491/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0035219Z Receiving objects:  82% (497/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0037686Z Receiving objects:  83% (503/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0039022Z Receiving objects:  84% (509/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0040152Z Receiving objects:  85% (515/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0041362Z Receiving objects:  86% (521/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0042085Z Receiving objects:  87% (527/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0042975Z Receiving objects:  88% (533/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0043521Z Receiving objects:  89% (539/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0044029Z Receiving objects:  90% (545/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0044826Z Receiving objects:  91% (551/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0045638Z Receiving objects:  92% (557/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0047219Z Receiving objects:  93% (563/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0047763Z Receiving objects:  94% (569/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0048287Z Receiving objects:  95% (575/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0049297Z Receiving objects:  96% (581/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0049822Z Receiving objects:  97% (587/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0050340Z Receiving objects:  98% (593/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0051755Z Receiving objects:  99% (599/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0056448Z Receiving objects: 100% (605/605), 204.75 MiB | 30.51 MiB/s
2021-04-06T17:21:26.0057040Z Receiving objects: 100% (605/605), 223.60 MiB | 29.66 MiB/s, done.
2021-04-06T17:21:26.0148547Z Resolving deltas:   0% (0/234)
2021-04-06T17:21:26.0149470Z Resolving deltas:   1% (3/234)
2021-04-06T17:21:26.0158720Z Resolving deltas:   2% (5/234)
2021-04-06T17:21:26.0168934Z Resolving deltas:  11% (27/234)
2021-04-06T17:21:26.0176257Z Resolving deltas:  13% (31/234)
2021-04-06T17:21:26.0183008Z Resolving deltas:  14% (33/234)
2021-04-06T17:21:26.0472254Z Resolving deltas:  15% (36/234)
2021-04-06T17:21:26.0527643Z Resolving deltas:  16% (38/234)
2021-04-06T17:21:26.0535802Z Resolving deltas:  17% (40/234)
2021-04-06T17:21:26.0595336Z Resolving deltas:  20% (48/234)
2021-04-06T17:21:26.0608339Z Resolving deltas:  22% (52/234)
2021-04-06T17:21:26.0623467Z Resolving deltas:  23% (54/234)
2021-04-06T17:21:26.0661862Z Resolving deltas:  24% (57/234)
2021-04-06T17:21:26.0666891Z Resolving deltas:  26% (63/234)
2021-04-06T17:21:26.0705146Z Resolving deltas:  27% (65/234)
2021-04-06T17:21:26.0706602Z Resolving deltas:  34% (80/234)
2021-04-06T17:21:26.0807433Z Resolving deltas:  35% (82/234)
2021-04-06T17:21:26.0836592Z Resolving deltas:  38% (89/234)
2021-04-06T17:21:26.0959159Z Resolving deltas:  39% (92/234)
2021-04-06T17:21:26.0978388Z Resolving deltas:  40% (94/234)
2021-04-06T17:21:26.0979622Z Resolving deltas:  42% (100/234)
2021-04-06T17:21:26.1005150Z Resolving deltas:  43% (101/234)
2021-04-06T17:21:26.1013141Z Resolving deltas:  45% (106/234)
2021-04-06T17:21:26.1139836Z Resolving deltas:  46% (108/234)
2021-04-06T17:21:26.1198172Z Resolving deltas:  48% (113/234)
2021-04-06T17:21:26.1200263Z Resolving deltas:  49% (115/234)
2021-04-06T17:21:26.1201516Z Resolving deltas:  50% (119/234)
2021-04-06T17:21:26.1207417Z Resolving deltas:  51% (120/234)
2021-04-06T17:21:26.1265264Z Resolving deltas:  52% (124/234)
2021-04-06T17:21:26.1449524Z Resolving deltas:  53% (125/234)
2021-04-06T17:21:26.1451400Z Resolving deltas:  55% (130/234)
2021-04-06T17:21:26.1452609Z Resolving deltas:  57% (134/234)
2021-04-06T17:21:26.1453703Z Resolving deltas:  58% (137/234)
2021-04-06T17:21:26.1454702Z Resolving deltas:  60% (141/234)
2021-04-06T17:21:26.1455844Z Resolving deltas:  61% (143/234)
2021-04-06T17:21:26.1456852Z Resolving deltas:  63% (148/234)
2021-04-06T17:21:26.1457972Z Resolving deltas:  64% (152/234)
2021-04-06T17:21:26.1459075Z Resolving deltas:  65% (153/234)
2021-04-06T17:21:26.1460166Z Resolving deltas:  69% (162/234)
2021-04-06T17:21:26.1461271Z Resolving deltas:  73% (172/234)
2021-04-06T17:21:26.1462339Z Resolving deltas:  74% (174/234)
2021-04-06T17:21:26.1463333Z Resolving deltas:  76% (179/234)
2021-04-06T17:21:26.1464462Z Resolving deltas:  77% (182/234)
2021-04-06T17:21:26.1465739Z Resolving deltas:  79% (187/234)
2021-04-06T17:21:26.1466901Z Resolving deltas:  82% (193/234)
2021-04-06T17:21:26.1467942Z Resolving deltas:  84% (197/234)
2021-04-06T17:21:26.1469149Z Resolving deltas:  86% (202/234)
2021-04-06T17:21:26.1470717Z Resolving deltas:  87% (204/234)
2021-04-06T17:21:26.1471141Z Resolving deltas:  88% (207/234)
2021-04-06T17:21:26.1471512Z Resolving deltas:  89% (209/234)
2021-04-06T17:21:26.1471940Z Resolving deltas:  90% (211/234)
2021-04-06T17:21:26.2278390Z Resolving deltas:  91% (213/234)
2021-04-06T17:21:26.3718513Z Resolving deltas:  95% (224/234)
2021-04-06T17:21:26.3722778Z Resolving deltas: 100% (234/234)
2021-04-06T17:21:26.3723510Z Resolving deltas: 100% (234/234), done.
2021-04-06T17:21:30.3864421Z From https://dev.azure.com/GestisoftInterne/GoGestisoft/_git/GoGestisoft%20Report
2021-04-06T17:21:30.3865113Z  * [new branch]      master     -> origin/master
2021-04-06T17:21:30.5063496Z ##[command]git -c http.extraheader="AUTHORIZATION: bearer ***" fetch --force --tags --prune --progress --no-recurse-submodules origin +cc14cb230bebc9b2507f7b7055af96b392874eeb:refs/remotes/origin/cc14cb230bebc9b2507f7b7055af96b392874eeb
2021-04-06T17:21:30.9401446Z From https://dev.azure.com/GestisoftInterne/GoGestisoft/_git/GoGestisoft%20Report
2021-04-06T17:21:30.9402407Z  * [new ref]         cc14cb230bebc9b2507f7b7055af96b392874eeb -> origin/cc14cb230bebc9b2507f7b7055af96b392874eeb
2021-04-06T17:21:31.0337611Z ##[command]git checkout --progress --force cc14cb230bebc9b2507f7b7055af96b392874eeb
2021-04-06T17:21:31.9598909Z Note: switching to 'cc14cb230bebc9b2507f7b7055af96b392874eeb'.
2021-04-06T17:21:31.9599746Z 
2021-04-06T17:21:31.9601855Z You are in 'detached HEAD' state. You can look around, make experimental
2021-04-06T17:21:31.9603570Z changes and commit them, and you can discard any commits you make in this
2021-04-06T17:21:31.9604189Z state without impacting any branches by switching back to a branch.
2021-04-06T17:21:31.9604537Z 
2021-04-06T17:21:31.9604911Z If you want to create a new branch to retain commits you create, you may
2021-04-06T17:21:31.9605505Z do so (now or later) by using -c with the switch command. Example:
2021-04-06T17:21:31.9605835Z 
2021-04-06T17:21:31.9606022Z   git switch -c <new-branch-name>
2021-04-06T17:21:31.9606179Z 
2021-04-06T17:21:31.9606382Z Or undo this operation with:
2021-04-06T17:21:31.9606550Z 
2021-04-06T17:21:31.9606698Z   git switch -
2021-04-06T17:21:31.9606844Z 
2021-04-06T17:21:31.9607102Z Turn off this advice by setting config variable advice.detachedHead to false
2021-04-06T17:21:31.9607328Z 
2021-04-06T17:21:31.9607536Z HEAD is now at cc14cb2 Deleted Insights
2021-04-06T17:21:32.0038272Z ##[section]Finishing: Checkout GoGestisoft Report@master to s
2021-04-06T17:21:32.0204993Z ##[section]Starting: Set BuildNumber
2021-04-06T17:21:32.0367182Z ==============================================================================
2021-04-06T17:21:32.0367553Z Task         : PowerShell
2021-04-06T17:21:32.0367865Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2021-04-06T17:21:32.0368170Z Version      : 2.180.1
2021-04-06T17:21:32.0369203Z Author       : Microsoft Corporation
2021-04-06T17:21:32.0369588Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-04-06T17:21:32.0370004Z ==============================================================================
2021-04-06T17:21:33.3768562Z Generating script.
2021-04-06T17:21:33.4332109Z ========================== Starting Command Output ===========================
2021-04-06T17:21:33.4622080Z ##[command]"C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\_temp\e1849e61-b1fe-4e26-826b-b3e17001f831.ps1'"
2021-04-06T17:21:33.9965131Z ##[section]Async Command Start: Update Build Number
2021-04-06T17:21:34.5384229Z Update build number to 2.0.1.328 for build 328
2021-04-06T17:21:34.5384599Z ##[section]Async Command End: Update Build Number
2021-04-06T17:21:34.5386609Z ##[section]Finishing: Set BuildNumber
2021-04-06T17:21:34.5561277Z ##[section]Starting: Run Pipeline
2021-04-06T17:21:34.5718546Z ==============================================================================
2021-04-06T17:21:34.5718893Z Task         : PowerShell
2021-04-06T17:21:34.5719218Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2021-04-06T17:21:34.5719508Z Version      : 2.180.1
2021-04-06T17:21:34.5719777Z Author       : Microsoft Corporation
2021-04-06T17:21:34.5720140Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-04-06T17:21:34.5720570Z ==============================================================================
2021-04-06T17:21:35.8866169Z Generating script.
2021-04-06T17:21:35.8952625Z Formatted command: . 'C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\1\s\scripts\DevOps-Pipeline.ps1' -environment "AzureDevOps" -version "ci" -appBuild 1 -appRevision 328
2021-04-06T17:21:35.9488974Z ========================== Starting Command Output ===========================
2021-04-06T17:21:35.9811233Z ##[command]"C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\_temp\c5259748-c63a-4d3d-a989-98382300cdee.ps1'"
2021-04-06T17:21:36.5567220Z Set artifact = //17.5.22499.24011/us
2021-04-06T17:21:36.5580518Z Set pipelineName = HelloWorld-ci
2021-04-06T17:21:36.5596219Z Set containerName = cicd-helloworld-ci
2021-04-06T17:21:36.5814117Z Set installApps = 'https://**********.blob.core.windows.net/apps/Apps.zip?sv=2019-12-12&st=2021-04-0**********33%3A59Z&se=2035-04-05T00%3A33%3A00Z&sr=b&sp=r&sig=77iRjNuuu0qd1F2fXrE2aZE%3D'
2021-04-06T17:21:36.5864277Z Set previousApps = 'https://businesscentralapps.azureedge.net/helloworld/latest/apps.zip'
2021-04-06T17:21:36.5881788Z Set appSourceCopMandatoryAffixes = ''
2021-04-06T17:21:36.5898440Z Set appSourceCopSupportedCountries = ''
2021-04-06T17:21:36.5936323Z Set appFolders = 'app,base'
2021-04-06T17:21:36.5971657Z Set testFolders = 'test'
2021-04-06T17:21:36.6008724Z Set memoryLimit = '6G'
2021-04-06T17:21:36.6044506Z Set additionalCountries = ''
2021-04-06T17:21:36.6060370Z Set genericImageName = ''
2021-04-06T17:21:36.6100420Z Set vaultNameForLocal = 'BuildVariables'
2021-04-06T17:21:36.6129440Z Set bcContainerHelperVersion = 'latest'
2021-04-06T17:21:36.6204930Z Set installTestFramework = True
2021-04-06T17:21:36.6256072Z Set installTestLibraries = False
2021-04-06T17:21:36.6291160Z Set installPerformanceToolkit = False
2021-04-06T17:21:36.6326939Z Set enableCodeCop = False
2021-04-06T17:21:36.6362558Z Set enableAppSourceCop = False
2021-04-06T17:21:36.6399907Z Set enablePerTenantExtensionCop = True
2021-04-06T17:21:36.6434986Z Set enableUICop = True
2021-04-06T17:21:36.6470594Z Set doNotSignApps = True
2021-04-06T17:21:36.6486559Z Set doNotRunTests = False
2021-04-06T17:21:36.6526314Z Set cacheImage = True
2021-04-06T17:21:36.6573676Z Set CreateRuntimePackages = True
2021-04-06T17:21:37.8738555Z BcContainerHelper version 2.0.10
2021-04-06T17:21:40.3795557Z Determining artifacts to use
2021-04-06T17:21:41.0787421Z   _____                               _                
2021-04-06T17:21:41.0802504Z  |  __ \                             | |               
2021-04-06T17:21:41.0817097Z  | |__) |_ _ _ __ __ _ _ __ ___   ___| |_ ___ _ __ ___ 
2021-04-06T17:21:41.0830869Z  |  ___/ _` | '__/ _` | '_ ` _ \ / _ \ __/ _ \ '__/ __|
2021-04-06T17:21:41.0846884Z  | |  | (_| | | | (_| | | | | | |  __/ |_  __/ |  \__ \
2021-04-06T17:21:41.0857983Z  |_|   \__,_|_|  \__,_|_| |_| |_|\___|\__\___|_|  |___/
2021-04-06T17:21:41.0864540Z 
2021-04-06T17:21:41.0879883Z Pipeline name               HelloWorld-ci
2021-04-06T17:21:41.0898916Z Container name              cicd-helloworld-ci
2021-04-06T17:21:41.0912561Z Image name                  bcimage
2021-04-06T17:21:41.0930965Z ArtifactUrl                 https://bcartifacts.azureedge.net/sandbox/17.5.22499.24011/us
2021-04-06T17:21:41.0939609Z SasToken                    Not Specified
2021-04-06T17:21:41.0952483Z BcAuthContext               Not Specified
2021-04-06T17:21:41.0966161Z Environment                 
2021-04-06T17:21:41.1181779Z Credential                  admin/Dojy4496
2021-04-06T17:21:41.1784858Z MemoryLimit                 6G
2021-04-06T17:21:41.1809028Z Enable Task Scheduler       False
2021-04-06T17:21:41.1835029Z Assign Premium Plan         False
2021-04-06T17:21:41.1860294Z Install Test Runner         False
2021-04-06T17:21:41.1885308Z Install Test Framework      True
2021-04-06T17:21:41.1911753Z Install Test Libraries      False
2021-04-06T17:21:41.1938766Z Install Perf. Toolkit       False
2021-04-06T17:21:41.1963801Z CopySymbolsFromContainer    False
2021-04-06T17:21:41.1991445Z enableCodeCop               False
2021-04-06T17:21:41.2016565Z enableAppSourceCop          False
2021-04-06T17:21:41.2042292Z enableUICop                 True
2021-04-06T17:21:41.2068018Z enablePerTenantExtensionCop True
2021-04-06T17:21:41.2095666Z escapeFromCops              False
2021-04-06T17:21:41.2121228Z useDefaultAppSourceRuleSet  False
2021-04-06T17:21:41.2138383Z rulesetFile                 
2021-04-06T17:21:41.2165423Z azureDevOps                 True
2021-04-06T17:21:41.2192023Z License file                Specified
2021-04-06T17:21:41.2215775Z CodeSignCertPfxFile         Not specified
2021-04-06T17:21:41.2245575Z TestResultsFile             C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\1\s\TestResults.xml
2021-04-06T17:21:41.2262970Z TestResultsFormat           JUnit
2021-04-06T17:21:41.2320349Z AdditionalCountries         
2021-04-06T17:21:41.2345080Z PackagesFolder              C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\1\s\.packages
2021-04-06T17:21:41.2369800Z OutputFolder                C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\1\s\.output
2021-04-06T17:21:41.2394850Z BuildArtifactFolder         C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\1\a
2021-04-06T17:21:41.2420352Z CreateRuntimePackages       True
2021-04-06T17:21:41.2447446Z AppBuild                    1
2021-04-06T17:21:41.2473080Z AppRevision                 328
2021-04-06T17:21:41.2486246Z Install Apps
2021-04-06T17:21:41.2597973Z - https://alebessghaier.blob.core.windows.net/apps/Apps.zip?sv=2019-12-12&st=2021-04-04T00%3A33%3A59Z&se=2035-04-05T00%3A33%3A00Z&sr=b&sp=r&sig=77iRjNuuu0qd1FNqp8GlXhpoteyDUXg28o2fXrE2aZE%3D
2021-04-06T17:21:41.2610851Z Install Test Apps
2021-04-06T17:21:41.2624696Z - None
2021-04-06T17:21:41.2636795Z Previous Apps
2021-04-06T17:21:41.2669019Z - https://businesscentralapps.azureedge.net/helloworld/latest/apps.zip
2021-04-06T17:21:41.2680736Z Application folders
2021-04-06T17:21:41.2711046Z - C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\1\s\app
2021-04-06T17:21:41.2724803Z Test application folders
2021-04-06T17:21:41.2738501Z - None
2021-04-06T17:21:41.3203730Z 
2021-04-06T17:21:41.3215886Z   _____       _ _ _                                          _        _                            
2021-04-06T17:21:41.3228752Z  |  __ \     | | (_)                                        (_)      (_)                           
2021-04-06T17:21:41.3241527Z  | |__) |   _| | |_ _ __   __ _    __ _  ___ _ __   ___ _ __ _  ___   _ _ __ ___   __ _  __ _  ___ 
2021-04-06T17:21:41.3253851Z  |  ___/ | | | | | | '_ \ / _` |  / _` |/ _ \ '_ \ / _ \ '__| |/ __| | | '_ ` _ \ / _` |/ _` |/ _ \
2021-04-06T17:21:41.3266032Z  | |   | |_| | | | | | | | (_| | | (_| |  __/ | | |  __/ |  | | (__  | | | | | | | (_| | (_| |  __/
2021-04-06T17:21:41.3278707Z  |_|    \__,_|_|_|_|_| |_|\__, |  \__, |\___|_| |_|\___|_|  |_|\___| |_|_| |_| |_|\__,_|\__, |\___|
2021-04-06T17:21:41.3292304Z                            __/ |   __/ |                                                 __/ |     
2021-04-06T17:21:41.3306063Z                           |___/   |___/                                                 |___/      
2021-04-06T17:21:41.3311055Z 
2021-04-06T17:21:41.9011652Z Pulling mcr.microsoft.com/businesscentral:10.0.17763.1817
2021-04-06T17:21:42.3429599Z 
2021-04-06T17:21:42.3443256Z Pulling generic image took 1 seconds
2021-04-06T17:21:42.3673064Z 
2021-04-06T17:21:42.3830714Z    _____                _   _                               _        _                 
2021-04-06T17:21:42.3859692Z   / ____|              | | (_)                             | |      (_)                
2021-04-06T17:21:42.3875065Z  | |     _ __ ___  __ _| |_ _ _ __   __ _    ___ ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2021-04-06T17:21:42.3889832Z  | |    | '__/ _ \/ _` | __| | '_ \ / _` |  / __/ _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-04-06T17:21:42.3903206Z  | |____| | |  __/ (_| | |_| | | | | (_| | | (__ (_) | | | | |_ (_| | | | | |  __/ |   
2021-04-06T17:21:42.3917483Z   \_____|_|  \___|\__,_|\__|_|_| |_|\__, |  \___\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2021-04-06T17:21:42.3935088Z                                      __/ |                                             
2021-04-06T17:21:42.3950184Z                                     |___/                                              
2021-04-06T17:21:42.3955560Z 
2021-04-06T17:21:42.5476971Z WARNING: Container name should not exceed 15 characters
2021-04-06T17:21:42.7909893Z BcContainerHelper is version 2.0.10
2021-04-06T17:21:42.7923237Z BcContainerHelper is running as administrator
2021-04-06T17:21:42.7957682Z Host is Microsoft Windows Server 2019 Datacenter - ltsc2019
2021-04-06T17:21:42.9701495Z Docker Client Version is 19.03.13
2021-04-06T17:21:42.9734118Z Docker Server Version is 19.03.13
2021-04-06T17:21:43.4957756Z Fetching all docker images
2021-04-06T17:21:43.6712971Z Fetching all docker volumes
2021-04-06T17:21:43.8318282Z ArtifactUrl and ImageName specified
2021-04-06T17:21:44.0406208Z Image bcimage:sandbox-17.5.22499.24011-us-mt already exists
2021-04-06T17:21:44.3867755Z Using image bcimage:sandbox-17.5.22499.24011-us-mt
2021-04-06T17:21:44.5693627Z Creating Container cicd-helloworld-ci
2021-04-06T17:21:44.5812415Z Version: 17.5.22499.24011-US
2021-04-06T17:21:44.5825410Z Style: sandbox
2021-04-06T17:21:44.5839176Z Multitenant: Yes
2021-04-06T17:21:44.5865457Z Platform: 17.0.22463.23993
2021-04-06T17:21:44.5880945Z Generic Tag: 1.0.1.4
2021-04-06T17:21:44.5913687Z Container OS Version: 10.0.17763.1817 (ltsc2019)
2021-04-06T17:21:44.5927575Z Host OS Version: 10.0.17763.1817 (ltsc2019)
2021-04-06T17:21:44.5982191Z Using process isolation
2021-04-06T17:21:44.6054396Z Using locale en-US
2021-04-06T17:21:44.6088774Z Disabling the standard eventlog dump to container log every 2 seconds (use -dumpEventLog to enable)
2021-04-06T17:21:44.6295430Z Using license file https://alebessghaier.blob.core.windows.net/licensev17/5193935.flf
2021-04-06T17:21:44.6459507Z Downloading C:\ProgramData\BcContainerHelper\Extensions\cicd-helloworld-ci\my\license.flf
2021-04-06T17:21:44.9525893Z Additional Parameters:
2021-04-06T17:21:44.9559341Z --volume "C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\1\s:c:\sources"
2021-04-06T17:21:44.9572495Z --env customNavSettings=EnableTaskScheduler=False
2021-04-06T17:21:44.9586695Z Files in C:\ProgramData\BcContainerHelper\Extensions\cicd-helloworld-ci\my:
2021-04-06T17:21:44.9649088Z - AdditionalOutput.ps1
2021-04-06T17:21:44.9662149Z - license.flf
2021-04-06T17:21:44.9676479Z - MainLoop.ps1
2021-04-06T17:21:44.9690741Z - SetupVariables.ps1
2021-04-06T17:21:45.0613447Z - updatehosts.ps1
2021-04-06T17:21:45.0628583Z Creating container cicd-helloworld-ci from image bcimage:sandbox-17.5.22499.24011-us-mt
2021-04-06T17:21:45.6193870Z 6ebc6bd18e463f6f42fc8c016b188670e36c2c29e8978e8cb0a53c4bd91ddbf7
2021-04-06T17:21:48.3990123Z Waiting for container cicd-helloworld-ci to be ready
2021-04-06T17:21:50.7983096Z Adding CICD-HELLOWORLD to hosts file
2021-04-06T17:21:51.9990081Z Initializing...
2021-04-06T17:21:52.0002617Z Setting host.containerhelper.internal to 172.21.16.1 in container hosts file
2021-04-06T17:21:52.0013977Z Starting Container
2021-04-06T17:21:52.0025267Z Hostname is cicd-helloworld-ci
2021-04-06T17:21:52.0036066Z PublicDnsName is cicd-helloworld-ci
2021-04-06T17:21:52.0046549Z Using NavUserPassword Authentication
2021-04-06T17:21:55.6538076Z Starting Local SQL Server
2021-04-06T17:22:01.8855453Z Starting Internet Information Server
2021-04-06T17:22:04.3097476Z Creating Self Signed Certificate
2021-04-06T17:22:04.3109461Z Self Signed Certificate Thumbprint 35A1524A11FFEC330B7D3E0FBE0623DD6FE288B2
2021-04-06T17:22:04.3119276Z Modifying Service Tier Config File with Instance Specific Settings
2021-04-06T17:22:04.3131628Z Modifying Service Tier Config File with settings from environment variable
2021-04-06T17:22:05.5125474Z Setting EnableTaskScheduler to False
2021-04-06T17:22:36.4436861Z Starting Service Tier
2021-04-06T17:22:36.4449219Z Registering event sources
2021-04-06T17:22:46.5758851Z Creating DotNetCore Web Server Instance
2021-04-06T17:22:46.5772337Z Enabling Financials User Experience
2021-04-06T17:22:46.5785650Z Enabling rewrite rule: Don't rewrite system files
2021-04-06T17:22:46.5796969Z Enabling rewrite rule: Already have tenant specified
2021-04-06T17:22:46.5810926Z Enabling rewrite rule: Hostname (without port) to tenant
2021-04-06T17:22:46.5822011Z Using license file 'c:\run\my\license.flf'
2021-04-06T17:23:03.1830321Z Import License
2021-04-06T17:23:03.1842437Z Dismounting Tenant
2021-04-06T17:23:03.1846773Z Mounting Tenant
2021-04-06T17:23:11.8877673Z Mounting Database for default on server localhost\SQLEXPRESS with AllowAppDatabaseWrite = False
2021-04-06T17:23:11.8893450Z Sync'ing Tenant
2021-04-06T17:23:11.8906603Z Tenant is Operational
2021-04-06T17:23:13.0856178Z Creating http download site
2021-04-06T17:23:13.0869778Z Setting SA Password and enabling SA
2021-04-06T17:23:14.2925847Z Creating admin as SQL User and add to sysadmin
2021-04-06T17:23:21.8090347Z Creating SUPER user
2021-04-06T17:23:21.8106700Z Container IP Address: 172.21.24.72
2021-04-06T17:23:21.8123175Z Container Hostname  : cicd-helloworld-ci
2021-04-06T17:23:21.8138125Z Container Dns Name  : cicd-helloworld-ci
2021-04-06T17:23:21.8157716Z Web Client          : http://cicd-helloworld-ci/BC/?tenant=default
2021-04-06T17:23:21.8172839Z Dev. Server         : http://cicd-helloworld-ci
2021-04-06T17:23:21.8186112Z Dev. ServerInstance : BC
2021-04-06T17:23:21.8200313Z Dev. Server Tenant  : default
2021-04-06T17:23:21.8215653Z Setting cicd-helloworld-ci to 172.21.24.72 in host hosts file
2021-04-06T17:23:21.8228856Z Setting cicd-helloworld-ci-default to 172.21.24.72 in host hosts file
2021-04-06T17:23:21.8242135Z Setting cicd-helloworld-ci-default to 172.21.24.72 in container hosts file
2021-04-06T17:23:21.8247139Z 
2021-04-06T17:23:21.8259872Z Files:
2021-04-06T17:23:21.8272598Z http://cicd-helloworld-ci:8080/ALLanguage.vsix
2021-04-06T17:23:21.8277727Z 
2021-04-06T17:23:21.8289635Z Container Total Physical Memory is 16.0Gb
2021-04-06T17:23:21.8312560Z Container Free Physical Memory is 9.7Gb
2021-04-06T17:23:21.8317754Z 
2021-04-06T17:23:21.8331877Z Initialization took 91 seconds
2021-04-06T17:23:21.8345708Z Ready for connections!
2021-04-06T17:23:21.8359971Z Reading CustomSettings.config from cicd-helloworld-ci
2021-04-06T17:23:23.5704063Z Creating Desktop Shortcuts for cicd-helloworld-ci
2021-04-06T17:23:23.5973764Z Container cicd-helloworld-ci successfully created
2021-04-06T17:23:23.5980061Z 
2021-04-06T17:23:23.5993262Z Use:
2021-04-06T17:23:23.6011064Z Get-BcContainerEventLog -containerName cicd-helloworld-ci to retrieve a snapshot of the event log from the container
2021-04-06T17:23:23.6033652Z Get-BcContainerDebugInfo -containerName cicd-helloworld-ci to get debug information about the container
2021-04-06T17:23:23.6055927Z Enter-BcContainer -containerName cicd-helloworld-ci to open a PowerShell prompt inside the container
2021-04-06T17:23:23.6079125Z Remove-BcContainer -containerName cicd-helloworld-ci to remove the container again
2021-04-06T17:23:23.6102989Z docker logs cicd-helloworld-ci to retrieve information about URL's again
2021-04-06T17:23:23.6264388Z 
2021-04-06T17:23:23.6277182Z Creating container took 101 seconds
2021-04-06T17:23:23.6282714Z 
2021-04-06T17:23:23.6297102Z   _____           _        _ _ _                                     
2021-04-06T17:23:23.6310253Z  |_   _|         | |      | | (_)                                    
2021-04-06T17:23:23.6323228Z    | |  _ __  ___| |_ __ _| | |_ _ __   __ _    __ _ _ __  _ __  ___ 
2021-04-06T17:23:23.6336282Z    | | | '_ \/ __| __/ _` | | | | '_ \ / _` |  / _` | '_ \| '_ \/ __|
2021-04-06T17:23:23.6349347Z   _| |_| | | \__ \ |_ (_| | | | | | | | (_| | | (_| | |_) | |_) \__ \
2021-04-06T17:23:23.6362110Z  |_____|_| |_|___/\__\__,_|_|_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
2021-04-06T17:23:23.6375102Z                                         __/ |       | |   | |        
2021-04-06T17:23:23.6388816Z                                        |___/        |_|   |_|        
2021-04-06T17:23:23.6394205Z 
2021-04-06T17:23:23.9864950Z Downloading C:\windows\TEMP\33e3bdd8-0a22-4de4-87d1-d01f82a2d192
2021-04-06T17:23:25.6871075Z Publishing C:\ProgramData\BcContainerHelper\Extensions\cicd-helloworld-ci\c3be910c-5f79-4ddd-8384-60614af8e268\Insight Works_Barcode Generator_1.3.7723.3.app
2021-04-06T17:23:30.1287004Z Synchronizing Barcode Generator on tenant default
2021-04-06T17:23:30.6818586Z Installing Barcode Generator on tenant default
2021-04-06T17:23:32.9659927Z App Insight Works_Barcode Generator_1.3.7723.3.app successfully published
2021-04-06T17:23:32.9718793Z 
2021-04-06T17:23:32.9731638Z Installing apps took 9 seconds
2021-04-06T17:23:32.9736879Z 
2021-04-06T17:23:32.9750081Z    _____                      _ _ _                                     
2021-04-06T17:23:32.9762824Z   / ____|                    (_) (_)                                    
2021-04-06T17:23:32.9776270Z  | |     ___  _ __ ___  _ __  _| |_ _ __   __ _    __ _ _ __  _ __  ___ 
2021-04-06T17:23:32.9789585Z  | |    / _ \| '_ ` _ \| '_ \| | | | '_ \ / _` |  / _` | '_ \| '_ \/ __|
2021-04-06T17:23:32.9802159Z  | |____ (_) | | | | | | |_) | | | | | | | (_| | | (_| | |_) | |_) \__ \
2021-04-06T17:23:32.9814622Z   \_____\___/|_| |_| |_| .__/|_|_|_|_| |_|\__, |  \__,_| .__/| .__/|___/
2021-04-06T17:23:32.9827472Z                        | |                 __/ |       | |   | |        
2021-04-06T17:23:32.9840095Z                        |_|                |___/        |_|   |_|        
2021-04-06T17:23:32.9845233Z 
2021-04-06T17:23:33.0918839Z Using Version 1.4.1.328
2021-04-06T17:23:33.9670896Z Using Symbols Folder: C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\1\s\.packages
2021-04-06T17:24:14.0001625Z Downloading symbols: Microsoft_Application_17.5.22499.24011.app
2021-04-06T17:24:14.0043059Z Url : http://172.21.24.72:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=17.0.0.0&tenant=default
2021-04-06T17:24:15.3887599Z Adding dependency to System Application from Microsoft
2021-04-06T17:24:15.3917576Z Adding dependency to Base Application from Microsoft
2021-04-06T17:24:15.3961216Z Downloading symbols: Microsoft_System_17.0.22463.23993.app
2021-04-06T17:24:15.3971441Z Url : http://172.21.24.72:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=17.0.0.0&tenant=default
2021-04-06T17:24:15.7631041Z Downloading symbols: Insight Works_Barcode Generator_1.3.7723.3.app
2021-04-06T17:24:15.7646974Z Url : http://172.21.24.72:7049/BC/dev/packages?publisher=Insight%20Works&appName=Barcode%20Generator&versionText=1.3.7723.3&tenant=default
2021-04-06T17:24:16.2513896Z Downloading symbols: Microsoft_System Application_17.5.22499.24011.app
2021-04-06T17:24:16.2526503Z Url : http://172.21.24.72:7049/BC/dev/packages?publisher=Microsoft&appName=System%20Application&versionText=17.5.0.0&tenant=default
2021-04-06T17:24:16.7528097Z Downloading symbols: Microsoft_Base Application_17.5.22499.24011.app
2021-04-06T17:24:16.7541994Z Url : http://172.21.24.72:7049/BC/dev/packages?publisher=Microsoft&appName=Base%20Application&versionText=17.5.0.0&tenant=default
2021-04-06T17:24:17.4646893Z Compiling...
2021-04-06T17:24:17.4785346Z .\alc.exe /project:"c:\sources\app" /packagecachepath:"c:\sources\.packages" /out:"c:\sources\.output\Gestisoft_GoGestisoft Report_1.4.1.328.app" /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.PerTenantExtensionCop.dll /analyzer:C:\build\vsix\extension\bin\Analyzers\Microsoft.Dynamics.Nav.UICop.dll /assemblyprobingpaths:"C:\Program Files (x86)\Microsoft Dynamics NAV\170\RoleTailored Client","C:\Program Files\Microsoft Dynamics NAV\170\Service","C:\Program Files (x86)\Open XML SDK\V2.5\lib","c:\Windows\Microsoft.NET\Assembly","C:\Test Assemblies\Mock Assemblies"
2021-04-06T17:24:26.3465330Z Microsoft (R) AL Compiler version 6.5.6.33494
2021-04-06T17:24:26.3511853Z Copyright (C) Microsoft Corporation. All rights reserved
2021-04-06T17:24:26.3513358Z 
2021-04-06T17:24:26.3534700Z Compilation started for project 'GoGestisoft Report' containing '37' files at '18:24:18.22'.
2021-04-06T17:24:26.3543829Z 
2021-04-06T17:24:26.3653658Z ##[warning]c:\sources\app\Reports\REP 80310 StandardSalesQuote.al(472,47): warning AL0432: Field 'Cross-Reference No.' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-04-06T17:24:26.3680303Z ##[warning]c:\sources\app\Reports\REP 80310 StandardSalesQuote.al(478,64): warning AL0432: Field 'Cross-Reference No.' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-04-06T17:24:26.3687054Z ##[warning]c:\sources\app\Reports\REP 80302 StandardSalesOrderConf.al(536,42): warning AL0432: Field 'Cross-Reference No.' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-04-06T17:24:26.3693276Z ##[warning]c:\sources\app\Reports\REP 80302 StandardSalesOrderConf.al(539,59): warning AL0432: Field 'Cross-Reference No.' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-04-06T17:24:26.3700722Z ##[warning]c:\sources\app\Reports\REP 80302 StandardSalesOrderConf.al(549,45): warning AL0432: Field 'Cross-Reference No.' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-04-06T17:24:26.3708189Z ##[warning]c:\sources\app\Reports\REP 80301 SalesInvoice.al(780,45): warning AL0432: Field 'Cross-Reference No.' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-04-06T17:24:26.3715509Z ##[warning]c:\sources\app\Reports\REP 80305.SalesCreditMemo.al(525,45): warning AL0432: Field 'Cross-Reference No.' is marked for removal. Reason: Cross-Reference replaced by Item Reference feature.. Tag: 17.0.
2021-04-06T17:24:26.3726357Z ##[error]c:\sources\app\Reports\REP 80306 ProductionWorkOrderTraveler.al(283,27): error AL0185: Table 'IWX Barcode' is missing
2021-04-06T17:24:26.3737748Z ##[error]c:\sources\app\Reports\REP 80306 ProductionWorkOrderTraveler.al(282,22): error AL0185: Table 'IWX Barcode' is missing
2021-04-06T17:24:26.3759906Z ##[error]c:\sources\app\Reports\REP 80306 ProductionWorkOrderTraveler.al(269,29): error AL0185: Codeunit '23044800' is missing
2021-04-06T17:24:26.3775068Z ##[error]c:\sources\app\Reports\REP 80307 PurchaseReceiptCustom.al(393,17): error AL0185: Table 'IWX Barcode' is missing
2021-04-06T17:24:26.3783138Z ##[error]c:\sources\app\Reports\REP 80307 PurchaseReceiptCustom.al(403,29): error AL0185: Codeunit 'IWX Library - Barcode Gen' is missing
2021-04-06T17:24:26.3795557Z ##[error]c:\sources\app\Reports\REP 80308 PostedPurchaseReceiptCustom.al(356,17): error AL0185: Table 'IWX Barcode' is missing
2021-04-06T17:24:26.3808735Z ##[error]c:\sources\app\Reports\REP 80308 PostedPurchaseReceiptCustom.al(362,29): error AL0185: Codeunit 'IWX Library - Barcode Gen' is missing
2021-04-06T17:24:26.3810993Z 
2021-04-06T17:24:26.3829013Z Compilation ended at '18:24:26.225'.
2021-04-06T17:24:26.3833459Z 
2021-04-06T17:24:26.3850779Z App generation failed with exit code 1
2021-04-06T17:24:26.4234207Z 
2021-04-06T17:24:26.4252568Z   _____                           _                _____            _        _                 
2021-04-06T17:24:26.4266987Z  |  __ \                         (_)              / ____|          | |      (_)                
2021-04-06T17:24:26.4283152Z  | |__) |___ _ __ ___   _____   ___ _ __   __ _  | |     ___  _ __ | |_ __ _ _ _ __   ___ _ __ 
2021-04-06T17:24:26.4301828Z  |  _  // _ \ '_ ` _ \ / _ \ \ / / | '_ \ / _` | | |    / _ \| '_ \| __/ _` | | '_ \ / _ \ '__|
2021-04-06T17:24:26.4314766Z  | | \ \  __/ | | | | | (_) \ V /| | | | | (_| | | |____ (_) | | | | |_ (_| | | | | |  __/ |   
2021-04-06T17:24:26.4321810Z  |_|  \_\___|_| |_| |_|\___/ \_/ |_|_| |_|\__, |  \_____\___/|_| |_|\__\__,_|_|_| |_|\___|_|   
2021-04-06T17:24:26.4334618Z                                            __/ |                                               
2021-04-06T17:24:26.4341389Z                                           |___/                                                
2021-04-06T17:24:26.4346299Z 
2021-04-06T17:24:27.5353575Z Removing container cicd-helloworld-ci
2021-04-06T17:24:30.3856457Z Removing cicd-helloworld-ci from container hosts file
2021-04-06T17:24:30.4649747Z Removing cicd-helloworld-ci-* from container hosts file
2021-04-06T17:24:30.6139559Z Removing C:\ProgramData\BcContainerHelper\Extensions\cicd-helloworld-ci
2021-04-06T17:24:30.6800402Z 
2021-04-06T17:24:30.6816568Z Removing container took 4 seconds
2021-04-06T17:24:30.9231189Z ##[error]App generation failed with exit code 1
At C:\Program Files\WindowsPowerShell\Modules\BcContainerHelper\2.0.10\AppHandling\Compile-AppInNavContainer.ps1:516 
char:72
+ ... | Where-Object { $_ -like "App generation failed*" } | % { throw $_ }
+                                                                ~~~~~~~~
    + CategoryInfo          : OperationStopped: (App generation failed with exit code 1:String) [], RuntimeException
    + FullyQualifiedErrorId : App generation failed with exit code 1
2021-04-06T17:24:30.9310180Z ##[error]PowerShell exited with code '1'.
2021-04-06T17:24:30.9811367Z ##[section]Finishing: Run Pipeline
2021-04-06T17:24:31.0176668Z ##[section]Starting: Cleanup
2021-04-06T17:24:31.0402951Z ==============================================================================
2021-04-06T17:24:31.0403303Z Task         : PowerShell
2021-04-06T17:24:31.0403627Z Description  : Run a PowerShell script on Linux, macOS, or Windows
2021-04-06T17:24:31.0403921Z Version      : 2.180.1
2021-04-06T17:24:31.0404185Z Author       : Microsoft Corporation
2021-04-06T17:24:31.0404555Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/powershell
2021-04-06T17:24:31.0404984Z ==============================================================================
2021-04-06T17:24:32.4939439Z Generating script.
2021-04-06T17:24:32.5022151Z Formatted command: . 'C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\1\s\scripts\Cleanup.ps1' -environment "AzureDevOps"
2021-04-06T17:24:32.5440560Z ========================== Starting Command Output ===========================
2021-04-06T17:24:32.5731604Z ##[command]"C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe" -NoLogo -NoProfile -NonInteractive -ExecutionPolicy Unrestricted -Command ". 'C:\Users\vmadmin\Desktop\vsts-agent-win-x64-2.179.0 new\_work\_temp\f05cc057-3b8f-4b75-b78d-9d6024d63b2e.ps1'"
2021-04-06T17:24:33.7507647Z Version not defined, using ci
2021-04-06T17:24:33.7508483Z Set artifact = //17.5.22499.24011/us
2021-04-06T17:24:33.7509017Z Set pipelineName = HelloWorld-ci
2021-04-06T17:24:33.7515103Z Set containerName = cicd-helloworld-ci
2021-04-06T17:24:33.7517338Z Set installApps = 'https://alebessghaier.blob.core.windows.net/apps/Apps.zip?sv=2019-12-12&st=2021-04-04T00%3A33%3A59Z&se=2035-04-05T00%3A33%3A00Z&sr=b&sp=r&sig=77iRjNuuu0qd1F28o2fXrE2aZE%3D'
2021-04-06T17:24:33.7518139Z Set previousApps = 'https://businesscentralapps.azureedge.net/helloworld/latest/apps.zip'
2021-04-06T17:24:33.7518661Z Set appSourceCopMandatoryAffixes = ''
2021-04-06T17:24:33.7519049Z Set appSourceCopSupportedCountries = ''
2021-04-06T17:24:33.7519297Z Set appFolders = 'app,base'
2021-04-06T17:24:33.7519665Z Set testFolders = 'test'
2021-04-06T17:24:33.7519973Z Set memoryLimit = '6G'
2021-04-06T17:24:33.7521177Z Set additionalCountries = ''
2021-04-06T17:24:33.7521471Z Set genericImageName = ''
2021-04-06T17:24:33.7521863Z Set vaultNameForLocal = 'BuildVariables'
2021-04-06T17:24:33.7522229Z Set bcContainerHelperVersion = 'latest'
2021-04-06T17:24:33.7522492Z Set installTestFramework = True
2021-04-06T17:24:33.7522871Z Set installTestLibraries = False
2021-04-06T17:24:33.7523227Z Set installPerformanceToolkit = False
2021-04-06T17:24:33.7523600Z Set enableCodeCop = False
2021-04-06T17:24:33.7523866Z Set enableAppSourceCop = False
2021-04-06T17:24:33.7524129Z Set enablePerTenantExtensionCop = True
2021-04-06T17:24:33.7524494Z Set enableUICop = True
2021-04-06T17:24:33.7524854Z Set doNotSignApps = True
2021-04-06T17:24:33.7525065Z Set doNotRunTests = False
2021-04-06T17:24:33.7525288Z Set cacheImage = True
2021-04-06T17:24:33.7525507Z Set CreateRuntimePackages = True
2021-04-06T17:24:34.5310627Z BcContainerHelper version 2.0.10
2021-04-06T17:24:39.3769114Z Running Docker image prune
2021-04-06T17:24:39.5434039Z Completed
2021-04-06T17:24:39.6236887Z ##[section]Finishing: Cleanup
2021-04-06T17:24:39.6412575Z ##[section]Starting: Checkout GoGestisoft Report@master to s
2021-04-06T17:24:39.6591173Z ==============================================================================
2021-04-06T17:24:39.6591541Z Task         : Get sources
2021-04-06T17:24:39.6591891Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.
2021-04-06T17:24:39.6592252Z Version      : 1.0.0
2021-04-06T17:24:39.6592475Z Author       : Microsoft
2021-04-06T17:24:39.6592846Z Help         : [More Information](https://go.microsoft.com/fwlink/?LinkId=798199)
2021-04-06T17:24:39.6593264Z ==============================================================================
2021-04-06T17:24:40.1075409Z Cleaning any cached credential from repository: GoGestisoft Report (Git)
2021-04-06T17:24:40.1191702Z ##[section]Finishing: Checkout GoGestisoft Report@master to s
2021-04-06T17:24:40.1364809Z ##[section]Starting: Finalize Job
2021-04-06T17:24:40.1405103Z Cleaning up task key
2021-04-06T17:24:40.1407354Z Start cleaning up orphan processes.
2021-04-06T17:24:40.1492890Z ##[section]Finishing: Finalize Job
2021-04-06T17:24:40.1630359Z ##[section]Finishing: Build

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Additional context**
- does it happen all the time?
- did it use to work?
freddydk commented 3 years ago

The dependency app - is that a real app? Or is it just a set of symbols? If it is symbols, you should not add them in installapps - you should place the symbols in the packages folder yourself - but the pipeline will fail when you try to publish later in the pipeline.

mabessghaier commented 3 years ago

The dependency app is a real free app image

At the beginning the symbol is placed only in the packages folder I got the error below

@.***D72BAC.7C21FB10] image

Then I added the package in installapps, the package is downloaded successfully but not able to compile

image [GESTISOFT] Mohamed Ali Bessghaier Analyste Programmeur Dynamics NAV/D365 BC Dynamics NAV/D365 BC Analyst Programmer @.**@.> (514) 399-1154 x415 www.gestisoft.com

From: Freddy Kristiansen @.> Sent: 7 avril 2021 12:26 To: microsoft/navcontainerhelper @.> Cc: Mohamed Ali Bessghaier @.>; Author @.> Subject: Re: [microsoft/navcontainerhelper] Dependencies in build pipelines (#1876)

The dependency app - is that a real app? Or is it just a set of symbols? If it is symbols, you should not add them in installapps - you should place the symbols in the packages folder yourself - but the pipeline will fail when you try to publish later in the pipeline.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/navcontainerhelper/issues/1876#issuecomment-815050090, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKSS44SDWU37JQCO6LTRX63THSBSNANCNFSM42RCX2SA.

freddydk commented 3 years ago

Could you email me the URL where I can download the .app?

mabessghaier commented 3 years ago

https://appsource.microsoft.com/en-us/product/dynamics-365-business-central/PUBID.insight-works%7CAID.62080fe0-d57f-4d4c-aed1-ac539db3a244%7CPAPPID.62080fe0-d57f-4d4c-aed1-ac539db3a244?tab=Overview [GESTISOFT] Mohamed Ali Bessghaier Analyste Programmeur Dynamics NAV/D365 BC Dynamics NAV/D365 BC Analyst Programmer @.**@.> (514) 399-1154 x415 www.gestisoft.com

From: Freddy Kristiansen @.> Sent: 7 avril 2021 13:00 To: microsoft/navcontainerhelper @.> Cc: Mohamed Ali Bessghaier @.>; Author @.> Subject: Re: [microsoft/navcontainerhelper] Dependencies in build pipelines (#1876)

Could you email me the URL where I can download the .app?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/navcontainerhelper/issues/1876#issuecomment-815073279, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKSS44XA43K2LGZHYZD2DSLTHSFR5ANCNFSM42RCX2SA.

freddydk commented 3 years ago

And how do I get the .app file from that?

mabessghaier commented 3 years ago

Actually he is part of my downloaded symbol

Below a link to secure url that contain .app file

https://alebessghaier.blob.core.windows.net/apps/Apps.zip?sv=2019-12-12&st=2021-04-04T00%3A33%3A59Z&se=2035-04-05T00%3A33%3A00Z&sr=b&sp=r&sig=77iRjNuuu0qd1FNqp8GlXhpoteyDUXg28o2fXrE2aZE%3D

[GESTISOFT] Mohamed Ali Bessghaier Analyste Programmeur Dynamics NAV/D365 BC Dynamics NAV/D365 BC Analyst Programmer @.**@.> (514) 399-1154 x415 www.gestisoft.com

From: Freddy Kristiansen @.> Sent: 7 avril 2021 13:21 To: microsoft/navcontainerhelper @.> Cc: Mohamed Ali Bessghaier @.>; Author @.> Subject: Re: [microsoft/navcontainerhelper] Dependencies in build pipelines (#1876)

And how do I get the .app file from that?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/navcontainerhelper/issues/1876#issuecomment-815087114, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AKSS44THPYSB7OU7FW4DVXDTHSH7ZANCNFSM42RCX2SA.

freddydk commented 3 years ago

That is not an app - that is a symbol file, the content of that app is: image You will need the full app (or a runtime package matching the artifacts you are using) in order to use it in a pipeline.

mabessghaier commented 3 years ago

with runtime package , the pipeline works well ! Thanks @freddydk for your help

freddydk commented 3 years ago

Please note that the runtime package format is strictly tied to the version it is build on (app+platform).