HodorNV / ALOps

ALOps
59 stars 24 forks source link

Issue with other artifacts #483

Closed ferry-boussen closed 2 years ago

ferry-boussen commented 2 years ago

Describe the bug We have a extension that has a dependency on another app. During the build we publish the apps to the docker and then run the build.

the used yaml please provide the yaml that you used. It helps you put the yaml like this:

name: $(Build.BuildId)

trigger:
  branches:
    include:
      - master
      - stable

variables:
- group: 'CoNet Extension - ALOPS'  # link to a variable group that has secret variables, like URL to license file, or sasToken for insider builds

pool: BC Agents

steps:
- checkout: self
  clean: true 

- task: ALOpsDockerCreate@1
  displayName: 'ALOPS - Create Docker Image' # It will reuse the image if already exists, or build one if it doesn't.
  inputs:
    artifacttype: Sandbox
    artifactversion: 18.5
    artifactcountry: NL

- task: ALOpsDockerStart@1
  displayName: 'ALOPS - Start Docker Container' # No need to provide any details - it will get the details from previous step

- task: ALOpsDockerWait@1
  displayName: 'ALOPS - Wait for Docker Container to start'
  inputs:
    search_string: 'Ready for connections!'

#>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

- task: ALOpsLicenseImport@1
  displayName: 'ALOPS - License Import'
  inputs:
    usedocker: true
    license_path: '$(bc.license)'  # more info: https://www.youtube.com/watch?v=iVLOerdCuwA&t=3078s

- task: ALOpsAppCompiler@1
  displayName: 'ALOPS - Compile Extension'
  inputs:
    usedocker: true
    nav_app_version: '2.0.1805.*'
    failed_on_warnings: false    
    targetproject: './app.json'   # point to the folder in your repo that you want to compile in this step
    publish_artifact: true

#<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

- task: ALOpsDockerRemove@1
  displayName: 'ALOPS - Remove Docker Container'
  enabled: true
  condition: always()

# https://github.com/HodorNV/ALOps/issues/211
- task: ALOpsAgentMaintenance@1
  displayName: 'ALOps Agent Maintenance'
  inputs:
    removeoldtasks: true
    removeunusedcontainers: true
    removebcartifacts: true
    daysunused: 7

the output

2022-02-25T15:05:39.3702233Z ##[section]Starting: ALOPS - Compile Extension
2022-02-25T15:05:39.3877344Z ==============================================================================
2022-02-25T15:05:39.3877966Z Task         : ALOps App Compiler
2022-02-25T15:05:39.3878309Z Description  : Compile AL Extensions for Business Central
2022-02-25T15:05:39.3878603Z Version      : 1.447.2769
2022-02-25T15:05:39.3878830Z Author       : Hodor
2022-02-25T15:05:39.3879148Z Help         : Compile a Business Central extension from AL code.
2022-02-25T15:05:39.3879539Z ==============================================================================
2022-02-25T15:05:42.1605026Z *** Validate configuration
2022-02-25T15:05:42.5629406Z *** Task Inputs:
2022-02-25T15:05:42.5637822Z 
2022-02-25T15:05:42.5913132Z name                                                                   value
2022-02-25T15:05:42.6103469Z ----                                                                   -----
2022-02-25T15:05:42.6110440Z usedocker                                                               True
2022-02-25T15:05:42.6112069Z fixed_tag                                                                   
2022-02-25T15:05:42.6113116Z targetproject                                    C:\agent\_work\3\s\app.json
2022-02-25T15:05:42.6118676Z nav_computername                                                            
2022-02-25T15:05:42.6220223Z nav_serverinstance                                                     BC140
2022-02-25T15:05:42.6342111Z nav_tenant                                                           default
2022-02-25T15:05:42.6369343Z nav_ports_dev                                                           7049
2022-02-25T15:05:42.6373298Z bc_username                                                                 
2022-02-25T15:05:42.6379286Z bc_password                                                                 
2022-02-25T15:05:42.6380956Z al_compiler_version                                               0.12.15355
2022-02-25T15:05:42.6383207Z ruleset                                                                     
2022-02-25T15:05:42.6401234Z al_analyzer                                                                 
2022-02-25T15:05:42.6408477Z nav_app_version                                                   2.0.1805.*
2022-02-25T15:05:42.6410438Z vsix_download_path                                                          
2022-02-25T15:05:42.6414234Z use_ssl                                                                False
2022-02-25T15:05:42.6415288Z download_test_symbols                                                  False
2022-02-25T15:05:42.6416320Z usecompression                                                          True
2022-02-25T15:05:42.6417329Z publish_artifact                                                        True
2022-02-25T15:05:42.6418288Z publishxlif                                                            False
2022-02-25T15:05:42.6419688Z failed_on_warnings                                                     False
2022-02-25T15:05:42.6424087Z app_file_suffix                                                             
2022-02-25T15:05:42.6425175Z updatebuildnumber                                                       True
2022-02-25T15:05:42.6426414Z setup_working_folder                                                   False
2022-02-25T15:05:42.6449539Z showmycode                                                              Keep
2022-02-25T15:05:42.6450468Z resourceexposurepolicy_allowdebugging                                   Keep
2022-02-25T15:05:42.6451120Z resourceexposurepolicy_allowdownloadingsource                           Keep
2022-02-25T15:05:42.6451774Z resourceexposurepolicy_includesourceinsymbolfile                        Keep
2022-02-25T15:05:42.6452410Z applicationinsightskey                                                      
2022-02-25T15:05:42.6453034Z printappmanifest                                                        True
2022-02-25T15:05:42.6455736Z output_alc_logs                                                         True
2022-02-25T15:05:42.6456408Z additionalprobingpaths                                                      
2022-02-25T15:05:42.6456846Z 
2022-02-25T15:05:42.6457141Z 
2022-02-25T15:05:42.6457413Z 
2022-02-25T15:05:42.6458048Z *** For documentation, please visit   : https://www.alops.be/documentation
2022-02-25T15:05:42.6458494Z 
2022-02-25T15:05:42.8904140Z *** ALOps License:
2022-02-25T15:05:42.8923225Z   * Licensed To: CoNet Zaandam (Per Run License)
2022-02-25T15:05:42.8926928Z 
2022-02-25T15:05:42.9020550Z *** Importing required PS-Functions
2022-02-25T15:05:43.5223027Z *** Initiate Docker Session
2022-02-25T15:05:43.7641528Z *** Set Docker Container ErrorActionPreference = Stop
2022-02-25T15:05:44.2774145Z *** Import NAV/BC Management DLL's
2022-02-25T15:05:44.2812361Z *** Loading assemblies for ServiceTier [BC].
2022-02-25T15:05:44.4799785Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\180\service]
2022-02-25T15:05:44.4917025Z *** Selected module: [C:\program files\microsoft dynamics nav\180\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2022-02-25T15:05:44.4924979Z *** Loading module: [C:\program files\microsoft dynamics nav\180\service\Microsoft.Dynamics.Nav.Apps.Management.dll]
2022-02-25T15:05:44.5152240Z *** Selected module: [C:\program files\microsoft dynamics nav\180\service\Microsoft.Dynamics.Nav.Management.dll]
2022-02-25T15:05:44.5161027Z *** Loading module: [C:\program files\microsoft dynamics nav\180\service\Microsoft.Dynamics.Nav.Management.dll]
2022-02-25T15:05:44.7639138Z *** Setting up AL Compiler [ALLanguage]
2022-02-25T15:05:44.9890257Z *** Downloading AL Compiler [ALLanguage]
2022-02-25T15:05:44.9995302Z *** Get Extension from Local-Disk...[C:\Run\ALLanguage.vsix]
2022-02-25T15:05:44.9998574Z *** Resolving Path [C:\Run\ALLanguage.vsix]
2022-02-25T15:05:45.2911760Z *** VSIX Path Resolved: [C:\Run\ALLanguage.vsix]
2022-02-25T15:05:45.2937649Z *** Unpacking Extension to folder...
2022-02-25T15:05:49.0096926Z *** Loading Json Object: [c:\Run\Microsoft.al\al-ALLanguage\extension\package.json]
2022-02-25T15:05:49.0101643Z *** Using AL Compiler [vALLanguage] located [C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe]
2022-02-25T15:05:49.0108316Z ***
2022-02-25T15:05:49.0119261Z *** Working folder: C:\agent\_work\3\s
2022-02-25T15:05:49.0123600Z ***
2022-02-25T15:05:49.0133196Z *** Copy Working folder to Docker Container: 51ae945cddf880ef905b673a397e2cccdc48d946ce25faafd29940845c89b311
2022-02-25T15:05:49.0138159Z *** Docker Working Folder: c:\Run\DevOps\
2022-02-25T15:05:49.0159607Z *** Copy from [C:\agent\_work\3\s] to [c:\Run\DevOps\]
2022-02-25T15:05:49.0226354Z *** Source File setup completed
2022-02-25T15:05:49.3988282Z *** Target Project: \app.json
2022-02-25T15:05:49.4003203Z *** Check for app.json files: c:\Run\DevOps\
2022-02-25T15:05:49.4503768Z *** Project found:
2022-02-25T15:05:49.4554745Z    - C:\Run\DevOps
2022-02-25T15:05:49.4581080Z *** Retrieving App-Info [\app.json]
2022-02-25T15:05:49.4630729Z *** Loading Json Object: [c:\Run\DevOps\app.json]
2022-02-25T15:05:49.4659166Z   * App.ID          = 153d8b1e-5165-4822-8061-b966af639801
2022-02-25T15:05:49.4681751Z   * App.Name        = CoNet Zaandam B.V.
2022-02-25T15:05:49.4710097Z   * App.Publisher   = Technoberg B.V.
2022-02-25T15:05:49.4722838Z   * App.Version     = 18.7.5.0
2022-02-25T15:05:49.4741062Z   * App.Platform    = 18.0.0.0
2022-02-25T15:05:49.4761453Z   * App.Application = 18.0.0.0
2022-02-25T15:05:49.4824349Z *** Check Runtime: [7.2]
2022-02-25T15:05:49.4909544Z *** Removing ResourceExposurePolicy
2022-02-25T15:05:49.4948309Z ***
2022-02-25T15:05:49.5326287Z *** Setting Managed App Version [c:\Run\DevOps\app.json] =>  2.0.1805.10108
2022-02-25T15:05:49.6122941Z *** Final app.json:
2022-02-25T15:05:49.6123240Z {
2022-02-25T15:05:49.6123525Z     "id":  "153d8b1e-5165-4822-8061-b966af639801",
2022-02-25T15:05:49.6123878Z     "name":  "CoNet Zaandam B.V.",
2022-02-25T15:05:49.6125292Z     "publisher":  "Technoberg B.V.",
2022-02-25T15:05:49.6125616Z     "version":  "2.0.1805.10108",
2022-02-25T15:05:49.6125958Z     "brief":  "Extension voor CoNet Zaandam",
2022-02-25T15:05:49.6126343Z     "description":  "Extension voor CoNet Zaandam",
2022-02-25T15:05:49.6126718Z     "privacyStatement":  "",
2022-02-25T15:05:49.6126985Z     "EULA":  "",
2022-02-25T15:05:49.6127220Z     "help":  "",
2022-02-25T15:05:49.6127455Z     "url":  "",
2022-02-25T15:05:49.6127758Z     "logo":  "./logo/Conet-logo-square.png",
2022-02-25T15:05:49.6128076Z     "dependencies":  [
2022-02-25T15:05:49.6128348Z                          {
2022-02-25T15:05:49.6128752Z                              "id":  "63ca2fa4-4f03-4f2b-a480-172fef340d3f",
2022-02-25T15:05:49.6129246Z                              "publisher":  "Microsoft",
2022-02-25T15:05:49.6129707Z                              "name":  "System Application",
2022-02-25T15:05:49.6130173Z                              "version":  "18.0.29486.0"
2022-02-25T15:05:49.6130535Z                          },
2022-02-25T15:05:49.6130799Z                          {
2022-02-25T15:05:49.6131200Z                              "id":  "437dbf0e-84ff-417a-965d-ed2bb9650972",
2022-02-25T15:05:49.6131698Z                              "publisher":  "Microsoft",
2022-02-25T15:05:49.6132153Z                              "name":  "Base Application",
2022-02-25T15:05:49.6139496Z                              "version":  "18.0.29486.0"
2022-02-25T15:05:49.6139917Z                          },
2022-02-25T15:05:49.6140183Z                          {
2022-02-25T15:05:49.6140589Z                              "id":  "68e13fa3-217a-4be0-9141-99e5bf0ca818",
2022-02-25T15:05:49.6141086Z                              "publisher":  "Microsoft",
2022-02-25T15:05:49.6141551Z                              "name":  "Email - SMTP Connector",
2022-02-25T15:05:49.6142017Z                              "version":  "18.0.29486.0"
2022-02-25T15:05:49.6142380Z                          },
2022-02-25T15:05:49.6142659Z                          {
2022-02-25T15:05:49.6143059Z                              "id":  "c41d2080-5e79-4bfb-925e-8e5c964cf5e4",
2022-02-25T15:05:49.6143556Z                              "publisher":  "Prodware Group",
2022-02-25T15:05:49.6144056Z                              "name":  "Prodware - Internal Library",
2022-02-25T15:05:49.6144532Z                              "version":  "2.5.2110.7056"
2022-02-25T15:05:49.6144887Z                          },
2022-02-25T15:05:49.6145154Z                          {
2022-02-25T15:05:49.6145552Z                              "id":  "a8480e1d-5295-4845-83a2-7194534243e0",
2022-02-25T15:05:49.6146073Z                              "publisher":  "Prodware Nederland B.V.",
2022-02-25T15:05:49.6146604Z                              "name":  "Project Management - Project Template",
2022-02-25T15:05:49.6147094Z                              "version":  "18.1.0.0"
2022-02-25T15:05:49.6147440Z                          },
2022-02-25T15:05:49.6147706Z                          {
2022-02-25T15:05:49.6148113Z                              "id":  "1a303463-cb32-4172-b3c2-1fef03621aa5",
2022-02-25T15:05:49.6148633Z                              "publisher":  "Prodware Nederland B.V.",
2022-02-25T15:05:49.6149381Z                              "name":  "Project Management - Sell-to Customer",
2022-02-25T15:05:49.6149857Z                              "version":  "18.1.0.0"
2022-02-25T15:05:49.6150182Z                          }
2022-02-25T15:05:49.6150431Z                      ],
2022-02-25T15:05:49.6150805Z     "screenshots":  [
2022-02-25T15:05:49.6150978Z 
2022-02-25T15:05:49.6151165Z                     ],
2022-02-25T15:05:49.6151434Z     "platform":  "18.0.0.0",
2022-02-25T15:05:49.6151743Z     "application":  "18.0.0.0",
2022-02-25T15:05:49.6152018Z     "idRanges":  [
2022-02-25T15:05:49.6152254Z                      {
2022-02-25T15:05:49.6152995Z                          "from":  50100,
2022-02-25T15:05:49.6153554Z                          "to":  50249
2022-02-25T15:05:49.6153837Z                      }
2022-02-25T15:05:49.6154060Z                  ],
2022-02-25T15:05:49.6154453Z     "contextSensitiveHelpUrl":  "https://inside.conet.info/wiki/Business_Central",
2022-02-25T15:05:49.6154846Z     "runtime":  "7.2",
2022-02-25T15:05:49.6155107Z     "target":  "OnPrem",
2022-02-25T15:05:49.6155385Z     "showMyCode":  true
2022-02-25T15:05:49.6155584Z }
2022-02-25T15:05:49.6155704Z 
2022-02-25T15:05:49.6155851Z ***
2022-02-25T15:05:49.6596719Z *** Working Direcotry: [c:\Run\DevOps\]
2022-02-25T15:05:49.6597647Z *** Target Project: [\app.json]
2022-02-25T15:05:49.6598196Z *** Project Directory: [c:\Run\DevOps]
2022-02-25T15:05:49.6776137Z *** VSCode Settings: [c:\Run\DevOps\.vscode\settings.json]
2022-02-25T15:05:49.6792710Z *** No VSCode-Settings json found.
2022-02-25T15:05:49.6795938Z *** No AL-RuleSet json found.
2022-02-25T15:05:49.6907699Z ***
2022-02-25T15:05:49.8646714Z *** Resolve Docker Credentials
2022-02-25T15:05:49.8707212Z *** Setup BC Username/Password from Container info
2022-02-25T15:05:49.8779992Z *** Download Symbols
2022-02-25T15:05:50.2143553Z *** Working Dir: c:\Run\DevOps\
2022-02-25T15:05:50.3564830Z *** Loading assemblies from: [C:\program files\microsoft dynamics nav\180\service]
2022-02-25T15:05:50.4236740Z *** PackageCache path created [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:50.4244383Z ***
2022-02-25T15:05:50.4329748Z *** Propagated Dependency: Microsoft - System Application - 18.0.29486.0
2022-02-25T15:05:50.4396409Z *** Propagated Dependency: Microsoft - Base Application - 18.0.29486.0
2022-02-25T15:05:50.4416032Z *** Propagated Dependency: Microsoft - Email - SMTP Connector - 18.0.29486.0
2022-02-25T15:05:50.4423520Z *** Propagated Dependency: Prodware Group - Prodware - Internal Library - 2.5.2110.7056
2022-02-25T15:05:50.4437002Z *** Propagated Dependency: Prodware Nederland B.V. - Project Management - Project Template - 18.1.0.0
2022-02-25T15:05:50.4449797Z *** Propagated Dependency: Prodware Nederland B.V. - Project Management - Sell-to Customer - 18.1.0.0
2022-02-25T15:05:50.4459162Z *** Download System-Symbols for [18.0.0.0]
2022-02-25T15:05:50.4800972Z *** Downloading NAV Symbols for [System v18.0.0.0]
2022-02-25T15:05:50.4809066Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=18.0.0.0&tenant=default]
2022-02-25T15:05:50.5089303Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:50.5107333Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=System&versionText=18.0.0.0&tenant=default
2022-02-25T15:05:51.3183815Z *** Content-Disposition: attachment; filename=Microsoft_System_18.0.29486.36228.app
2022-02-25T15:05:51.3363418Z *** Saving symbol file [Microsoft_System_18.0.29486.36228.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:51.3502994Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_System_18.0.29486.36228.app].
2022-02-25T15:05:51.4085047Z ***
2022-02-25T15:05:51.4100123Z *** Download Application-Symbols for [18.0.0.0]
2022-02-25T15:05:51.4118144Z *** Downloading NAV Symbols for [Application v18.0.0.0]
2022-02-25T15:05:51.4122809Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=18.0.0.0&tenant=default]
2022-02-25T15:05:51.4129820Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:51.4459082Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=18.0.0.0&tenant=default
2022-02-25T15:05:51.8077908Z *** Content-Disposition: attachment; filename=Microsoft_Application_18.5.29545.36418.app
2022-02-25T15:05:51.8101419Z *** Saving symbol file [Microsoft_Application_18.5.29545.36418.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:51.8130503Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Application_18.5.29545.36418.app].
2022-02-25T15:05:51.8309117Z *** Propagated Dependency: Microsoft - System Application - 18.5.0.0
2022-02-25T15:05:51.8364188Z *** Propagated Dependency: Microsoft - Base Application - 18.5.0.0
2022-02-25T15:05:51.8366967Z ***
2022-02-25T15:05:51.8399539Z *** Check for Depency Apps 8
2022-02-25T15:05:51.8457991Z *** Download Application-Symbols for [System Application v18.0.29486.0]
2022-02-25T15:05:51.8460924Z *** Downloading NAV Symbols for [System Application v18.0.29486.0]
2022-02-25T15:05:51.8464200Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=System+Application&versionText=18.0.29486.0&tenant=default]
2022-02-25T15:05:51.8482501Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:51.8486525Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=System+Application&versionText=18.0.29486.0&tenant=default
2022-02-25T15:05:52.3468951Z *** Content-Disposition: attachment; filename="Microsoft_System Application_18.5.29545.36418.app"
2022-02-25T15:05:52.3499148Z *** Saving symbol file [Microsoft_System Application_18.5.29545.36418.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:52.3522502Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_System Application_18.5.29545.36418.app].
2022-02-25T15:05:52.3535278Z ***
2022-02-25T15:05:52.3550378Z *** Download Application-Symbols for [Base Application v18.0.29486.0]
2022-02-25T15:05:52.3562874Z *** Downloading NAV Symbols for [Base Application v18.0.29486.0]
2022-02-25T15:05:52.3577620Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Base+Application&versionText=18.0.29486.0&tenant=default]
2022-02-25T15:05:52.3584660Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:52.3596624Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Base+Application&versionText=18.0.29486.0&tenant=default
2022-02-25T15:05:52.8533437Z *** Content-Disposition: attachment; filename="Microsoft_Base Application_18.5.29545.36418.app"
2022-02-25T15:05:52.8557495Z *** Saving symbol file [Microsoft_Base Application_18.5.29545.36418.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:52.9279927Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Base Application_18.5.29545.36418.app].
2022-02-25T15:05:53.0668410Z ***
2022-02-25T15:05:53.0679374Z *** Download Application-Symbols for [Email - SMTP Connector v18.0.29486.0]
2022-02-25T15:05:53.0713485Z *** Downloading NAV Symbols for [Email - SMTP Connector v18.0.29486.0]
2022-02-25T15:05:53.0716725Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Email+-+SMTP+Connector&versionText=18.0.29486.0&tenant=default]
2022-02-25T15:05:53.0744177Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:53.0747773Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Email+-+SMTP+Connector&versionText=18.0.29486.0&tenant=default
2022-02-25T15:05:53.4504529Z *** Content-Disposition: attachment; filename="Microsoft_Email - SMTP Connector_18.5.29545.36418.app"
2022-02-25T15:05:53.4541130Z *** Saving symbol file [Microsoft_Email - SMTP Connector_18.5.29545.36418.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:53.4562828Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Email - SMTP Connector_18.5.29545.36418.app].
2022-02-25T15:05:53.4601847Z *** Propagated Dependency: Microsoft - Application - 18.5.0.0
2022-02-25T15:05:53.4612431Z ***
2022-02-25T15:05:53.4632083Z *** Download Application-Symbols for [Prodware - Internal Library v2.5.2110.7056]
2022-02-25T15:05:53.4660737Z *** Downloading NAV Symbols for [Prodware - Internal Library v2.5.2110.7056]
2022-02-25T15:05:53.4663096Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Prodware+Group&appName=Prodware+-+Internal+Library&versionText=2.5.2110.7056&tenant=default]
2022-02-25T15:05:53.4698803Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:53.4702464Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Prodware+Group&appName=Prodware+-+Internal+Library&versionText=2.5.2110.7056&tenant=default
2022-02-25T15:05:54.0877927Z *** Content-Disposition: attachment; filename="Prodware Group_Prodware - Internal Library_2.5.2110.7056.app"
2022-02-25T15:05:54.0907319Z *** Saving symbol file [Prodware Group_Prodware - Internal Library_2.5.2110.7056.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:54.0926440Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Prodware Group_Prodware - Internal Library_2.5.2110.7056.app].
2022-02-25T15:05:54.0959877Z *** Propagated Dependency: Microsoft - Application - 18.0.0.0
2022-02-25T15:05:54.0966807Z ***
2022-02-25T15:05:54.0990583Z *** Download Application-Symbols for [Project Management - Project Template v18.1.0.0]
2022-02-25T15:05:54.0998499Z *** Downloading NAV Symbols for [Project Management - Project Template v18.1.0.0]
2022-02-25T15:05:54.1123173Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Prodware+Nederland+B.V.&appName=Project+Management+-+Project+Template&versionText=18.1.0.0&tenant=default]
2022-02-25T15:05:54.1124319Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:54.1485333Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Prodware+Nederland+B.V.&appName=Project+Management+-+Project+Template&versionText=18.1.0.0&tenant=default
2022-02-25T15:05:54.5066095Z *** Content-Disposition: attachment; filename="Prodware Nederland B.V._Project Management - Project Template_18.1.0.0.app"
2022-02-25T15:05:54.5088804Z *** Saving symbol file [Prodware Nederland B.V._Project Management - Project Template_18.1.0.0.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:54.5104446Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Prodware Nederland B.V._Project Management - Project Template_18.1.0.0.app].
2022-02-25T15:05:54.5120833Z *** Propagated Dependency: Prodware Group - Prodware - Internal Library - 2.0.0.0
2022-02-25T15:05:54.5135543Z ***
2022-02-25T15:05:54.5148573Z *** Download Application-Symbols for [Project Management - Sell-to Customer v18.1.0.0]
2022-02-25T15:05:54.5160413Z *** Downloading NAV Symbols for [Project Management - Sell-to Customer v18.1.0.0]
2022-02-25T15:05:54.5179434Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Prodware+Nederland+B.V.&appName=Project+Management+-+Sell-to+Customer&versionText=18.1.0.0&tenant=default]
2022-02-25T15:05:54.5182808Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:54.5190828Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Prodware+Nederland+B.V.&appName=Project+Management+-+Sell-to+Customer&versionText=18.1.0.0&tenant=default
2022-02-25T15:05:54.8885332Z *** Content-Disposition: attachment; filename="Prodware Nederland B.V._Project Management - Sell-to Customer_18.1.0.0.app"
2022-02-25T15:05:54.8907101Z *** Saving symbol file [Prodware Nederland B.V._Project Management - Sell-to Customer_18.1.0.0.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:54.8922057Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Prodware Nederland B.V._Project Management - Sell-to Customer_18.1.0.0.app].
2022-02-25T15:05:54.8938182Z *** Propagated Dependency: Prodware Nederland B.V. - Project Management - Project Template - 18.0.0.0
2022-02-25T15:05:54.9034978Z ***
2022-02-25T15:05:54.9037375Z *** Download Application-Symbols for [System Application v18.5.0.0]
2022-02-25T15:05:54.9081667Z *** Downloading NAV Symbols for [System Application v18.5.0.0]
2022-02-25T15:05:54.9084823Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=System+Application&versionText=18.5.0.0&tenant=default]
2022-02-25T15:05:54.9094603Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:54.9105747Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=System+Application&versionText=18.5.0.0&tenant=default
2022-02-25T15:05:55.3535861Z *** Content-Disposition: attachment; filename="Microsoft_System Application_18.5.29545.36418.app"
2022-02-25T15:05:55.3568785Z *** Saving symbol file [Microsoft_System Application_18.5.29545.36418.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:55.3580152Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_System Application_18.5.29545.36418.app].
2022-02-25T15:05:55.3653337Z ***
2022-02-25T15:05:55.3662971Z *** Download Application-Symbols for [Base Application v18.5.0.0]
2022-02-25T15:05:55.3666094Z *** Downloading NAV Symbols for [Base Application v18.5.0.0]
2022-02-25T15:05:55.3669388Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Base+Application&versionText=18.5.0.0&tenant=default]
2022-02-25T15:05:55.3698556Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:55.3709466Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Base+Application&versionText=18.5.0.0&tenant=default
2022-02-25T15:05:55.8573903Z *** Content-Disposition: attachment; filename="Microsoft_Base Application_18.5.29545.36418.app"
2022-02-25T15:05:55.8621412Z *** Saving symbol file [Microsoft_Base Application_18.5.29545.36418.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:55.9243259Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Base Application_18.5.29545.36418.app].
2022-02-25T15:05:56.0404255Z ***
2022-02-25T15:05:56.0424864Z *** Download Application-Symbols for [Application v18.5.0.0]
2022-02-25T15:05:56.0453822Z *** Downloading NAV Symbols for [Application v18.5.0.0]
2022-02-25T15:05:56.0475171Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=18.5.0.0&tenant=default]
2022-02-25T15:05:56.0496434Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:56.0500412Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=18.5.0.0&tenant=default
2022-02-25T15:05:56.4307203Z *** Content-Disposition: attachment; filename=Microsoft_Application_18.5.29545.36418.app
2022-02-25T15:05:56.4332923Z *** Saving symbol file [Microsoft_Application_18.5.29545.36418.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:56.4355024Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Application_18.5.29545.36418.app].
2022-02-25T15:05:56.4383007Z ***
2022-02-25T15:05:56.4400241Z *** Download Application-Symbols for [Application v18.0.0.0]
2022-02-25T15:05:56.4420436Z *** Downloading NAV Symbols for [Application v18.0.0.0]
2022-02-25T15:05:56.4424801Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=18.0.0.0&tenant=default]
2022-02-25T15:05:56.4449951Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:56.4454585Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Microsoft&appName=Application&versionText=18.0.0.0&tenant=default
2022-02-25T15:05:56.8065288Z *** Content-Disposition: attachment; filename=Microsoft_Application_18.5.29545.36418.app
2022-02-25T15:05:56.8093532Z *** Saving symbol file [Microsoft_Application_18.5.29545.36418.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:56.8111694Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Microsoft_Application_18.5.29545.36418.app].
2022-02-25T15:05:56.8757542Z ***
2022-02-25T15:05:56.8779401Z *** Download Application-Symbols for [Prodware - Internal Library v2.0.0.0]
2022-02-25T15:05:56.8787469Z *** Downloading NAV Symbols for [Prodware - Internal Library v2.0.0.0]
2022-02-25T15:05:56.8798149Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Prodware+Group&appName=Prodware+-+Internal+Library&versionText=2.0.0.0&tenant=default]
2022-02-25T15:05:56.8811825Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:56.8820778Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Prodware+Group&appName=Prodware+-+Internal+Library&versionText=2.0.0.0&tenant=default
2022-02-25T15:05:57.2774535Z *** Content-Disposition: attachment; filename="Prodware Group_Prodware - Internal Library_2.5.2110.7056.app"
2022-02-25T15:05:57.2798940Z *** Saving symbol file [Prodware Group_Prodware - Internal Library_2.5.2110.7056.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:57.2821440Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Prodware Group_Prodware - Internal Library_2.5.2110.7056.app].
2022-02-25T15:05:57.2833606Z ***
2022-02-25T15:05:57.2847760Z *** Download Application-Symbols for [Project Management - Project Template v18.0.0.0]
2022-02-25T15:05:57.2861782Z *** Downloading NAV Symbols for [Project Management - Project Template v18.0.0.0]
2022-02-25T15:05:57.2877901Z *** Downloading NAV Symbols from [https://51ae945cddf8:7049/BC/dev/packages?publisher=Prodware+Nederland+B.V.&appName=Project+Management+-+Project+Template&versionText=18.0.0.0&tenant=default]
2022-02-25T15:05:57.2895139Z *** Downloading NAV Symbols with BasicAuthentication [admin]
2022-02-25T15:05:57.2899737Z ##[command]Invoke-RestMethod -Method Get -Uri https://51ae945cddf8:7049/BC/dev/packages?publisher=Prodware+Nederland+B.V.&appName=Project+Management+-+Project+Template&versionText=18.0.0.0&tenant=default
2022-02-25T15:05:57.6799527Z *** Content-Disposition: attachment; filename="Prodware Nederland B.V._Project Management - Project Template_18.1.0.0.app"
2022-02-25T15:05:57.6822981Z *** Saving symbol file [Prodware Nederland B.V._Project Management - Project Template_18.1.0.0.app] to [c:\Run\DevOps\PackageCache]
2022-02-25T15:05:57.6837907Z *** Read App Manifest: [c:\Run\DevOps\PackageCache\Prodware Nederland B.V._Project Management - Project Template_18.1.0.0.app].
2022-02-25T15:05:57.6859002Z ***
2022-02-25T15:05:58.0946833Z *** Starting AL Compiler...
2022-02-25T15:05:58.0967148Z *** App.Name         = CoNet Zaandam B.V.
2022-02-25T15:05:58.0974797Z *** App.Publisher    = Technoberg B.V.
2022-02-25T15:05:58.0977416Z *** App.Compiler Path= C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe
2022-02-25T15:05:58.1027884Z *** Checking for Assemblies in App
2022-02-25T15:05:58.1436093Z *** Add Windows Assembly Path [C:\Windows\assembly]
2022-02-25T15:05:58.1526425Z *** Detect ALC.EXE Features.
2022-02-25T15:05:58.1533957Z ##[command]& C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe /?
2022-02-25T15:05:58.3653415Z   * PARALLEL+
2022-02-25T15:05:58.3681305Z   * MAXDEGREEOFPARALLELISM
2022-02-25T15:05:58.3684409Z   * ASSEMBLYPROBINGPATHS
2022-02-25T15:05:58.3756572Z ##[command]& C:\Run\Microsoft.al\al-ALLanguage\extension\bin\alc.exe /packagecachepath:"c:\Run\DevOps\PackageCache" /project:"c:\Run\DevOps" /out:"c:\Run\DevOps\Technoberg B.V._CoNet Zaandam B.V._2.0.1805.10108.app" /fullpaths /parallel+ /maxDegreeOfParallelism:2 /assemblyprobingpaths:"C:\Windows\assembly","C:\Windows\Microsoft.NET\assembly","C:\program files\microsoft dynamics nav\180\service"
2022-02-25T15:06:14.7655084Z *** AL Compiler Exit Code: 1
2022-02-25T15:06:14.7683075Z *** Full Compile Log:
2022-02-25T15:06:14.7832959Z Microsoft (R) AL Compiler version 7.5.7.45977 Copyright (C) Microsoft Corporation. All rights reserved  Compilation started for project 'CoNet Zaandam B.V.' containing '440' files at '16:5:58.632'.  c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(221,53): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL' c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(221,17): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL' c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(264,16): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL' c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(265,27): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL'  Compilation ended at '16:6:14.710'. 
2022-02-25T15:06:14.7843929Z 
2022-02-25T15:06:14.8240186Z *** AL Compiler raw logs: Start
2022-02-25T15:06:14.8247493Z Microsoft (R) AL Compiler version 7.5.7.45977
2022-02-25T15:06:14.8258677Z Copyright (C) Microsoft Corporation. All rights reserved
2022-02-25T15:06:14.8276676Z Compilation started for project 'CoNet Zaandam B.V.' containing '440' files at '16:5:58.632'.
2022-02-25T15:06:14.8285282Z c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(221,53): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL'
2022-02-25T15:06:14.8288907Z c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(221,17): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL'
2022-02-25T15:06:14.8296407Z c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(264,16): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL'
2022-02-25T15:06:14.8305947Z c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(265,27): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL'
2022-02-25T15:06:14.8315131Z Compilation ended at '16:6:14.710'.
2022-02-25T15:06:14.8323408Z *** AL Compiler raw logs: End
2022-02-25T15:06:14.8331803Z *** Start processing compile results.
2022-02-25T15:06:14.8395467Z ##[error]c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(221,53): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL'
2022-02-25T15:06:14.8416927Z ##[error]c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(221,17): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL'
2022-02-25T15:06:14.8425680Z ##[error]c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(264,16): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL'
2022-02-25T15:06:14.8430492Z ##[error]c:\Run\DevOps\Codeunit\CU50120_CoNetDI.al(265,27): error AL0132: 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL'
2022-02-25T15:06:14.8437547Z ##[error]Compilation ended at '16:6:14.710'.
2022-02-25T15:06:14.8440596Z *** Store compile log to [c:\Run\DevOps\compilelog.txt]
2022-02-25T15:06:14.8456898Z *** Start processing compile results done.
2022-02-25T15:06:14.8464287Z *** Transfer App Artifact from Docker container.
2022-02-25T15:06:14.9890658Z ##[error]Cannot find path 'c:\Run\DevOps\Technoberg B.V._CoNet Zaandam B.V._2.0.1805.10108.app' because it does not exist.
2022-02-25T15:06:15.0353523Z ##[section]Async Command Start: Add Build Tag
2022-02-25T15:06:15.0354636Z Build '10108' has following tags now: AL.Compiler.ALLanguage, BC.Platform.18.0.29486.36228, myimage-sandbox-18.5.29545.36418-nl-10.0.17763.2565-ltsc2019, BC.Version.18.5.29545.36418, App.Project Management - Sell-to Customer.18.1.0.0, App.Prodware - Internal Library.2.5.2110.7056, App.Project Management - Project Template.18.1.0.0
2022-02-25T15:06:15.0355686Z ##[section]Async Command End: Add Build Tag
2022-02-25T15:06:15.0356719Z ##[section]Async Command Start: Update Build Number
2022-02-25T15:06:15.0357206Z Update build number to 2.0.1805.10108 for build 10108
2022-02-25T15:06:15.0357535Z ##[section]Async Command End: Update Build Number
2022-02-25T15:06:15.0358880Z ##[section]Finishing: ALOPS - Compile Extension

Expected behavior The extension should build. The symbols are downloaded from Downloading NAV Symbols for [Project Management - Sell-to Customer v18.1.0.0]. Thats were the 'Record Job' does not contain a definition for 'CJB33 Sell-to Cust.No.PNL' comes from

ferry-boussen commented 2 years ago

Compile based on IDs seems to work

waldo1001 commented 2 years ago

In the yaml, I don't see where you are publishing the app to the docker container? You'll need to do that, because the compile will download the dependencies from that instance.. .

ferry-boussen commented 2 years ago

Sorry wrong yml, in the log you can see that the logs before the compile the symbols are downloaded.

name: $(Build.BuildId)

trigger:
  branches:
    include:
      - master
      - stable

variables:
- group: 'CoNet Extension - ALOPS'  # link to a variable group that has secret variables, like URL to license file, or sasToken for insider builds

pool: BC Agents

steps:
- checkout: self
  clean: true 

- task: ALOpsDockerCreate@1
  displayName: 'ALOPS - Create Docker Image' # It will reuse the image if already exists, or build one if it doesn't.
  inputs:
    artifacttype: Sandbox
    artifactversion: 18.5
    artifactcountry: NL

- task: ALOpsDockerStart@1
  displayName: 'ALOPS - Start Docker Container' # No need to provide any details - it will get the details from previous step
  inputs:
   enable_symbol_loading: true

- task: ALOpsDockerWait@1
  displayName: 'ALOPS - Wait for Docker Container to start'
  inputs:
    search_string: 'Ready for connections!'

- task: ALOpsLicenseImport@1
  displayName: 'ALOPS - License Import'
  inputs:
    usedocker: true
    license_path: '$(bc.license)'  # more info: https://www.youtube.com/watch?v=iVLOerdCuwA&t=3078s

- task: ALOpsAppPublish@1
  displayName: 'ALOps - Dependant extensions'
  inputs:
    usedocker: true
    skip_verification: true
    forcesync: true
    installpublishedapps: true
    batch_publish_folder: '$(Build.SourcesDirectory)/External-apps'
    nav_artifact_app_filter: '*.app'

- task: ALOpsAppCompiler@1
  displayName: 'ALOPS - Compile Extension'
  inputs:
    usedocker: true
    nav_app_version: '2.0.1805.*'
    failed_on_warnings: false    
    targetproject: './app.json'   # point to the folder in your repo that you want to compile in this step
    publish_artifact: true

- task: ALOpsDockerRemove@1
  displayName: 'ALOPS - Remove Docker Container'
  enabled: true
  condition: always()

# https://github.com/HodorNV/ALOps/issues/211
- task: ALOpsAgentMaintenance@1
  displayName: 'ALOps Agent Maintenance'
  inputs:
    removeoldtasks: true
    removeunusedcontainers: true
    removebcartifacts: true
    daysunused: 7
waldo1001 commented 2 years ago

Hi,

I can see you're using the filter together with the batch-setting. This doesn't work. If you 're batch-publishing, it should take all apps in the batch.

So - could you please send me the output of the publish step, so I can verify if the app is actually published?

waldo1001 commented 2 years ago

Is this still a problem? If so, please provide full log and yml again, because i'm pretty much confused ;-)

waldo1001 commented 2 years ago

@ferry-boussen ?

waldo1001 commented 2 years ago

I will close this issue - if this is still a problem and you have more feedback with a full log and yml, you can open it again!